Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

We don't need a let block for a single spec.

  • Loading branch information...
commit 761464880923d736a9cfe88fc99cf29e1b47d240 1 parent 3f019c1
Marnen Laibow-Koser authored
Showing with 2 additions and 9 deletions.
  1. +2 −9 spec/features/stories_spec.rb
11 spec/features/stories_spec.rb
View
@@ -67,16 +67,10 @@
end
describe "delete a story" do
- let(:story) {
- FactoryGirl.create(:story, :title => 'Delete Me', :project => project,
+ it "deletes the story", :js => true do
+ story = FactoryGirl.create(:story, :title => 'Delete Me', :project => project,
:requested_by => user)
- }
-
- before do
- story
- end
- it "deletes the story", :js => true do
visit project_path(project)
within(story_selector(story)) do
@@ -86,7 +80,6 @@
page.should_not have_css(story_selector(story))
end
-
end
describe "show and hide columns" do
Please sign in to comment.
Something went wrong with that request. Please try again.