RSpec integration test example runs twice

I recently started using RSpec to test Integration in my Rails application to avoid having to upgrade with multiple testing platforms and in the process of converting my Cucumber functions to RSpec.

I successfully passed 1 integration test, however it seems to go through the example twice:

rspec spec/integration/create_article_spec.rb -f documentation

admin creates article
  successfully creates article

admin creates article
  successfully creates article

Finished in 0.51816 seconds
2 examples, 0 failures

Here is the contents of create_article_spec.rb:

require 'spec_helper'

feature "admin creates article" do
 scenario "successfully creates article" do
  visit admin_articles_url
  click_link "New Article"
  fill_in "Title", with: "Test 1"
  fill_in "Body", with: "Test Article"
  click_button "Save"
  page.should have_content "New Article Published"
 end
end

I can not find the reason why this can happen, and all other situations when this happened do not apply in my case.

It seems that this is happening with my integration tests, all other tests are not affected.

I hope someone with more RSpec knowledge than I can figure out where I can skip something.

Version

Rails (3.2.2) RSpec (2.8.0) RSpec-rails (2.8.1)

+3
2

, spec_helper.rb, , . , .

+4

rspec? ( , ), lib/tasks/rspec.rake script. , . , .

+1

All Articles