Skip to content

Commit

Permalink
remove test env specific tests
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxblade committed Dec 13, 2024
1 parent 7eddb34 commit 1ab5f57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: .
specs:
camille (0.5.16)
rails (>= 6.1, < 8)
rails (>= 6.1, < 8.1)

GEM
remote: https://rubygems.org/
Expand Down
8 changes: 2 additions & 6 deletions spec/camille/rails/products_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,8 @@
end

it 'does not raise if status is not 204' do
if Rails.env.test?
expect{ get '/products/head_401' }.not_to raise_error
elsif Rails.env.development?
get '/products/head_401'
expect(response.status).to eq(401)
end
get '/products/head_401'
expect(response.status).to eq(401)
end
end

Expand Down

0 comments on commit 1ab5f57

Please sign in to comment.