mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-21 15:30:36 -04:00
Move some action button specs to feature specs
because it's in a buttonbar, not the view now
This commit is contained in:
@@ -54,6 +54,11 @@ feature "Gardens" do
|
||||
end
|
||||
|
||||
describe '#show' do
|
||||
before { visit garden_path(garden) }
|
||||
it { is_expected.to have_link 'Edit' }
|
||||
it { is_expected.to have_link 'Delete' }
|
||||
it { is_expected.to have_content "Plant something here" }
|
||||
it { is_expected.to have_content "Add photo" }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -42,18 +42,6 @@ describe "gardens/show" do
|
||||
render
|
||||
end
|
||||
|
||||
it 'should have an edit button' do
|
||||
rendered.should have_link 'Edit'
|
||||
end
|
||||
|
||||
it "shows a 'plant something' button" do
|
||||
rendered.should have_content "Plant something"
|
||||
end
|
||||
|
||||
it "shows an 'add photo' button" do
|
||||
rendered.should have_content "Add photo"
|
||||
end
|
||||
|
||||
it "links to the right crop in the planting link" do
|
||||
assert_select("a[href='#{new_planting_path}?garden_id=#{@garden.id}']")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user