Permalink
Browse files

specs pass, removed unused spec/support config

  • Loading branch information...
1 parent 1412015 commit b8cbf1d1dabe54f6ac90b20ec2093819e771b11a @ultrasaurus ultrasaurus committed Dec 18, 2010
Showing with 15 additions and 23 deletions.
  1. +6 −2 app/views/stories/index.html.erb
  2. +9 −21 spec/support/integration/integration_example_group.rb
@@ -1,4 +1,8 @@
<%= link_to "New Story", new_story_path %>
-<%=@stories%>
-
+<ul>
+<% @stories.each do |story| %>
+ <li><%= story.title %> </li>
+<% end %>
+</ul>
+
@@ -5,28 +5,16 @@
module RSpec::Rails
module IntegrationExampleGroup
include ActionDispatch::Integration::Runner
- # include RSpec::Rails::TestUnitAssertionAdapter
- # include ActionDispatch::Assertions
include Capybara
- #include RSpec::Matchers
- #
- def app
- ::Rails.application
- end
- #
- # def last_response
- # page
- # end
- # end
- #
- # included do
- # before do
- # @router = ::Rails.application.routes
- # end
- #
- RSpec.configure do |c|
- c.include self, :example_group => { :file_path => /\bspec\/integration\// }
- end
+
+ def app
+ ::Rails.application
+ end
+
+ RSpec.configure do |c|
+ c.include self, :example_group => { :file_path => /\bspec\/integration\// }
+ end
+
end
end

0 comments on commit b8cbf1d

Please sign in to comment.