Skip to content

Commit

Permalink
remove redundant specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmullerr committed Dec 20, 2023
1 parent 69f1db4 commit 5284f29
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions spec/models/revenue_estimation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,5 @@
expect(subject.date.month).to eq(10)
end
end

context "invalid" do
it 'handles when revenue or average_ticket is a string' do
revenue_estimation = build(:revenue_estimation, revenue: 'invalid', average_ticket: 'invalid')
expect(revenue_estimation).not_to be_valid
end

it 'handles zero average_ticket' do
revenue_estimation = build(:revenue_estimation, revenue: 50, average_ticket: 0)
expect(revenue_estimation).not_to be_valid
end
end
end
end

0 comments on commit 5284f29

Please sign in to comment.