fix deprecation warnings

pull/1/head
rebuilt 4 years ago
parent 5c59032c65
commit b774d11d9d

@ -21,7 +21,7 @@ RSpec.describe "categories/index", type: :view do
end
it "renders a list of categories" do
render(template: "categories/index.html.haml")
render(template: "categories/index")
assert_select "tr>td", :text => "Name".to_s, :count => 2
assert_select "tr>td", :text => "Blurb".to_s, :count => 2
assert_select "tr>td", :text => "MyText".to_s, :count => 2

@ -13,7 +13,7 @@ RSpec.describe "districts/show", type: :view do
end
it "renders attributes in <p>" do
render(template: "districts/show.html.haml")
render(template: "districts/show")
expect(rendered).to match(/Milford/)
expect(rendered).to match(/2/)
3.times do |i|

@ -17,7 +17,7 @@ RSpec.describe "question_lists/index", type: :view do
end
it "renders a list of question_lists" do
render(template: "question_lists/index.html.haml" )
render(template: "question_lists/index" )
assert_select "tr>td", :text => "Name".to_s, :count => 2
assert_select "tr>td", :text => "MyText".to_s, :count => 2
assert_select "tr>td", :text => "1,2,3".to_s, :count => 1

@ -10,7 +10,7 @@ RSpec.describe "question_lists/show", type: :view do
end
it "renders attributes in <p>" do
render(template: "question_lists/show.html.haml")
render(template: "question_lists/show")
expect(rendered).to match(/Name/)
expect(rendered).to match(/MyText/)
expect(rendered).to match(/MyText/)

@ -25,7 +25,7 @@ RSpec.describe "questions/index", type: :view do
end
it "renders a list of questions" do
render(template: "questions/index.html.haml")
render(template: "questions/index")
assert_select "tr>td", :text => "Text".to_s, :count => 2
assert_select "tr>td", :text => "Option1".to_s, :count => 2
assert_select "tr>td", :text => "Option2".to_s, :count => 2

@ -15,7 +15,7 @@ RSpec.describe "questions/show", type: :view do
end
it "renders attributes in <p>" do
render(template: "questions/show.html.haml")
render(template: "questions/show")
expect(rendered).to match(/School/)
expect(rendered).to match(/Question Text/)
expect(rendered).to match(/Option1/)

@ -33,7 +33,7 @@ RSpec.describe "recipients/index", type: :view do
end
it "renders a list of recipients" do
render(template: "recipients/index.html.haml")
render(template: "recipients/index")
assert_select "tr>td", :text => "Name".to_s, :count => 2
assert_select "tr>td", :text => "Phone".to_s, :count => 2
assert_select "tr>td", :text => "Gender".to_s, :count => 2

@ -10,7 +10,7 @@ RSpec.describe "schools/show", type: :view do
end
it "renders attributes in <p>" do
render(template: "schools/show.html.haml")
render(template: "schools/show")
expect(rendered).to match(/School/)
expect(rendered).to match(/District/)
end

Loading…
Cancel
Save