Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Delete temporary rails 5 branching in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
petervandoros committed Aug 8, 2018
1 parent f74a8fc commit 9c341b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
12 changes: 2 additions & 10 deletions spec/controllers/guide/nodes_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@
end

it "does not render the show template" do
if Rails.version < '5'
expect(response).not_to render_template(:show)
else
expect(response.body).to be_blank
end
expect(response).not_to render_template(:show)
end
end
end
Expand All @@ -79,11 +75,7 @@
end

it "does not render the show template" do
if Rails.version < '5'
expect(response).not_to render_template(:show)
else
expect(response.body).to be_blank
end
expect(response).not_to render_template(:show)
end
end
end
Expand Down
18 changes: 3 additions & 15 deletions spec/controllers/guide/scenarios_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@
end

it "does not render the show template" do
if Rails.version < '5'
expect(response).not_to render_template(:show)
else
expect(response.body).to be_blank
end
expect(response).not_to render_template(:show)
end
end
end
Expand Down Expand Up @@ -83,11 +79,7 @@
end

it "does not render the show template" do
if Rails.version < '5'
expect(response).not_to render_template(:show)
else
expect(response.body).to be_blank
end
expect(response).not_to render_template(:show)
end
end
end
Expand Down Expand Up @@ -121,11 +113,7 @@
end

it "does not render the show template" do
if Rails.version < '5'
expect(response).not_to render_template(:show)
else
expect(response.body).to be_blank
end
expect(response).not_to render_template(:show)
end
end
end
Expand Down

0 comments on commit 9c341b6

Please sign in to comment.