diff --git a/spec/views/home/_members.html.haml_spec.rb b/spec/views/home/_members.html.haml_spec.rb
index 946622d56..14357ebae 100644
--- a/spec/views/home/_members.html.haml_spec.rb
+++ b/spec/views/home/_members.html.haml_spec.rb
@@ -11,12 +11,12 @@ describe 'home/_members.html.haml', type: "view" do
end
it 'Has a heading' do
- rendered.should have_content "Some of our members"
+ expect(rendered).to have_content "Some of our members"
end
- it 'Shows members' do
- rendered.should have_content @member.login_name
- rendered.should have_content @member.location
- rendered.should have_content @planting.crop_name
+ describe 'Shows members' do
+ it { expect(rendered).to have_content @member.login_name }
+ it { expect(rendered).to have_content @member.location }
+ it { expect(rendered).to have_content @planting.crop_name }
end
end
diff --git a/spec/views/plantings/_form.html.haml_spec.rb b/spec/views/plantings/_form.html.haml_spec.rb
index c4f6247b0..e6eb07563 100644
--- a/spec/views/plantings/_form.html.haml_spec.rb
+++ b/spec/views/plantings/_form.html.haml_spec.rb
@@ -14,6 +14,7 @@ describe "plantings/_form" do
owner: @member,
planted_at: Date.new(2013, 3, 1))
+ @gardens = @member.gardens
sign_in @member
render
end
diff --git a/spec/views/posts/index.html.haml_spec.rb b/spec/views/posts/index.html.haml_spec.rb
index 44508846d..ee3d2fb86 100644
--- a/spec/views/posts/index.html.haml_spec.rb
+++ b/spec/views/posts/index.html.haml_spec.rb
@@ -20,8 +20,7 @@ describe "posts/index" do
it "renders a list of posts" do
assert_select "div.post", count: 2
assert_select "h3", text: "A Post".to_s, count: 2
- assert_select "div.post-body",
- text: "This is some text.".to_s, count: 2
+ assert_select "div.post-body", text: "This is some text.".to_s, count: 2
end
it "contains two gravatar icons" do