Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

I'm sleepy.

  • Loading branch information...
commit b9f5eda25a7d30aa4fbeb9fec1d2238149d9132a 1 parent 0828e96
hisaaki.ito authored
Showing with 23 additions and 1 deletion.
  1. +23 −1 spec/requests/boooooooks_spec.rb
View
24 spec/requests/boooooooks_spec.rb
@@ -1,11 +1,33 @@
+# -*- coding: utf-8 -*-
require 'spec_helper'
describe "Boooooooks" do
describe "GET /boooooooks" do
it "works! (now write some real specs)" do
# Run the generator again with the --webrat flag if you want to use webrat methods/matchers
- get boooooooks_path
+ get boooooooks_index_url
response.status.should be(200)
end
end
+
+ describe 'POST /boooooooks' do
+ context "with create" do
+ let(:update_desc){ 'upd desc' }
+ let(:update_memo){ 'upd memo' }
+
+ before do
+ visit boooooooks_new_url
+ fill_in "boooooook[desc]", with: update_desc
+ fill_in "boooooook[memo]", with: update_memo
+ click_on 'Create Boooooook'
+ end
+
+ it "ページが遷移されていること" do
+ current_path.should == boooooooks_index_url
+ end
+
+ end
+
+
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.