Skip to content

Commit

Permalink
update spec files
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Mar 31, 2019
1 parent b5284c0 commit 667348a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ gem 'jquery-rails'

# To use debugger
# gem 'debugger'
gem 'rails-controller-testing'
gem 'rails-controller-testing', group: :test
4 changes: 2 additions & 2 deletions enju_inventory.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Gem::Specification.new do |s|
s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
s.test_files = Dir["spec/**/*"] - Dir["spec/dummy/db/*.sqlite3"] - Dir["spec/dummy/log/*"] - Dir["spec/dummy/solr/{data,pids,default,development,test}/*"] - Dir["spec/dummy/tmp/*"] - Dir["spec/dummy/private/**/*"]

s.add_dependency "enju_biblio", "~> 0.3.0"
s.add_dependency "enju_biblio", "~> 0.3.1"

s.add_development_dependency "enju_leaf", "~> 1.3.0"
s.add_development_dependency "enju_leaf", "~> 1.3.1"
s.add_development_dependency "sqlite3"
s.add_development_dependency "mysql2"
s.add_development_dependency "pg"
Expand Down
8 changes: 4 additions & 4 deletions spec/controllers/inventories_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
it "assigns all inventories as @inventories" do
get :index
expect(assigns(:inventories)).to eq(Inventory.page(1))
expect(response).to be_success
expect(response).to be_successful
end
end

Expand All @@ -20,7 +20,7 @@
it "assigns all inventories as @inventories" do
get :index
expect(assigns(:inventories)).to eq(Inventory.page(1))
expect(response).to be_success
expect(response).to be_successful
end
end

Expand Down Expand Up @@ -50,7 +50,7 @@
it "assigns the requested inventory as @inventory" do
get :show, params: { id: 1 }
expect(assigns(:inventory)).to eq(Inventory.find(1))
expect(response).to be_success
expect(response).to be_successful
end
end

Expand All @@ -60,7 +60,7 @@
it "assigns the requested inventory as @inventory" do
get :show, params: { id: 1 }
expect(assigns(:inventory)).to eq(Inventory.find(1))
expect(response).to be_success
expect(response).to be_successful
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/controllers/inventory_files_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
it "assigns the requested inventory_file as @inventory_file" do
get :new
expect(assigns(:inventory_file)).to_not be_valid
expect(response).to be_success
expect(response).to be_successful
end
end

Expand All @@ -95,7 +95,7 @@
it "should not assign the requested inventory_file as @inventory_file" do
get :new
expect(assigns(:inventory_file)).to_not be_valid
expect(response).to be_success
expect(response).to be_successful
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/items_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def valid_attributes

it 'should not get index with inventory_file_id' do
get :index, params: { inventory_file_id: 1 }
expect(response).to be_success
expect(response).to be_successful
assigns(:inventory_file).should eq InventoryFile.find(1)
expect(assigns(:items)).to eq Item.inventory_items(assigns(:inventory_file), 'not_on_shelf').order('items.id').page(1)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20180107161410) do
ActiveRecord::Schema.define(version: 2018_01_07_161410) do

create_table "accepts", force: :cascade do |t|
t.integer "basket_id"
Expand Down

0 comments on commit 667348a

Please sign in to comment.