diff --git a/spec/views/categories/index.html.erb_spec.rb b/spec/views/categories/index.html.erb_spec.rb index 9750fcbc..7165985e 100644 --- a/spec/views/categories/index.html.erb_spec.rb +++ b/spec/views/categories/index.html.erb_spec.rb @@ -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 diff --git a/spec/views/districts/show.html.erb_spec.rb b/spec/views/districts/show.html.erb_spec.rb index a4c86873..977e38d8 100644 --- a/spec/views/districts/show.html.erb_spec.rb +++ b/spec/views/districts/show.html.erb_spec.rb @@ -13,7 +13,7 @@ RSpec.describe "districts/show", type: :view do end it "renders attributes in

" 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| diff --git a/spec/views/question_lists/index.html.erb_spec.rb b/spec/views/question_lists/index.html.erb_spec.rb index a32c583a..519a4d87 100644 --- a/spec/views/question_lists/index.html.erb_spec.rb +++ b/spec/views/question_lists/index.html.erb_spec.rb @@ -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 diff --git a/spec/views/question_lists/show.html.erb_spec.rb b/spec/views/question_lists/show.html.erb_spec.rb index 7a4b2fcf..572f88e0 100644 --- a/spec/views/question_lists/show.html.erb_spec.rb +++ b/spec/views/question_lists/show.html.erb_spec.rb @@ -10,7 +10,7 @@ RSpec.describe "question_lists/show", type: :view do end it "renders attributes in

" 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/) diff --git a/spec/views/questions/index.html.erb_spec.rb b/spec/views/questions/index.html.erb_spec.rb index ecab92a0..99673258 100644 --- a/spec/views/questions/index.html.erb_spec.rb +++ b/spec/views/questions/index.html.erb_spec.rb @@ -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 diff --git a/spec/views/questions/show.html.erb_spec.rb b/spec/views/questions/show.html.erb_spec.rb index 61ebe439..3106e277 100644 --- a/spec/views/questions/show.html.erb_spec.rb +++ b/spec/views/questions/show.html.erb_spec.rb @@ -15,7 +15,7 @@ RSpec.describe "questions/show", type: :view do end it "renders attributes in

" 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/) diff --git a/spec/views/recipients/index.html.erb_spec.rb b/spec/views/recipients/index.html.erb_spec.rb index c47e59d0..9c3af874 100644 --- a/spec/views/recipients/index.html.erb_spec.rb +++ b/spec/views/recipients/index.html.erb_spec.rb @@ -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 diff --git a/spec/views/schools/show.html.erb_spec.rb b/spec/views/schools/show.html.erb_spec.rb index 896f7c56..dac41399 100644 --- a/spec/views/schools/show.html.erb_spec.rb +++ b/spec/views/schools/show.html.erb_spec.rb @@ -10,7 +10,7 @@ RSpec.describe "schools/show", type: :view do end it "renders attributes in

" do - render(template: "schools/show.html.haml") + render(template: "schools/show") expect(rendered).to match(/School/) expect(rendered).to match(/District/) end