Skip to content
Permalink
Browse files

Merge pull request #47 from Bounga/fix_book_creation_action_specs

Fix book create action specs in getting started guide
  • Loading branch information...
jodosha committed Jan 13, 2016
2 parents b2b2916 + 0e7b5f9 commit 4e533f9725fa0b072c42896b51a02856d445809a
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/guides/getting-started.md
@@ -742,13 +742,13 @@ describe Web::Controllers::Books::Create do
let(:action) { Web::Controllers::Books::Create.new }
let(:params) { Hash[book: { title: 'Confident Ruby', author: 'Avdi Grimm' }] }
after do
before do
BookRepository.clear
end
it 'creates a new book' do
action.call(params)
action.book.id.wont_be_nil
BookRepository.all.count.wont_equal 0
end
it 'redirects the user to the books listing' do

0 comments on commit 4e533f9

Please sign in to comment.
You can’t perform that action at this time.