Skip to content
Browse files

fixed view specs for presenters and sessions edit - using FactoryGirl…

… iso stub_model
  • Loading branch information...
1 parent 1dd5e6f commit b3023185c8fc0b4b990a7dadaf98d03a72d9393f @rwestgeest committed
View
6 .autotest
@@ -0,0 +1,6 @@
+Autotest.add_hook(:initialize) { |at|
+ at.add_exception %r{^\.git}
+ at.add_exception %r{^log}
+ at.add_exception %r{^data}
+ nil
+}
View
8 config/database.yml
@@ -5,21 +5,21 @@
# gem 'sqlite3'
development:
adapter: sqlite3
- database: db/development.sqlite3
+ database: data/development.sqlite3
pool: 5
timeout: 5000
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
+# Do not set this data to the same as development or production.
test:
adapter: sqlite3
- database: db/test.sqlite3
+ database: data/test.sqlite3
pool: 5
timeout: 5000
production:
adapter: sqlite3
- database: db/production.sqlite3
+ database: data/production.sqlite3
pool: 5
timeout: 5000
View
1 spec/factories.rb
@@ -8,6 +8,5 @@
factory :session do
title {|n| "title_#{n}"}
description {|n| "description_#{n}"}
- first_presenter_email {|n| "session_#{n}_first_presenter@example.com"}
end
end
View
2 spec/views/presenters/edit.html.erb_spec.rb
@@ -2,7 +2,7 @@
describe "presenters/edit" do
before(:each) do
- @presenter = assign(:presenter, stub_model(Presenter))
+ @presenter = assign(:presenter, FactoryGirl.create(:presenter))
end
it "renders the edit presenter form" do
View
2 spec/views/sessions/edit.html.erb_spec.rb
@@ -2,7 +2,7 @@
describe "sessions/edit" do
before(:each) do
- @session = assign(:session, stub_model(Session))
+ @session = assign(:session, FactoryGirl.create(:session))
end
it "renders the edit session form" do

0 comments on commit b302318

Please sign in to comment.
Something went wrong with that request. Please try again.