specs in the green
This commit is contained in:
@@ -24,6 +24,7 @@ describe Supplier do
|
||||
Qwaiter::Counter.set "supplier_counter:#{supplier.id}:orders_placed", 9
|
||||
supplier.orders_placed_count.should == 9
|
||||
Supplier.reset_counters!
|
||||
sleep 0.5
|
||||
supplier.orders_placed_count.should == 0
|
||||
Qwaiter::Counter.connection = old_connection
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require "spec_helper"
|
||||
|
||||
describe "routing" do
|
||||
describe "routing", type: :routing do
|
||||
it('roots to pages#home'){get('/').should route_to('pages#home', locale: 'nl')}
|
||||
it('roots to pages#home for en locale'){get('/en').should route_to('pages#home', locale: 'en')}
|
||||
it('handles about page as root'){ get('/about').should route_to('pages#show', name: 'about', locale: 'nl')}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require "spec_helper"
|
||||
|
||||
describe SupplierController do
|
||||
describe SupplierController, type: :routing do
|
||||
describe "routing" do
|
||||
|
||||
it "routes root to #home" do
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require "spec_helper"
|
||||
|
||||
describe UserController do
|
||||
describe UserController, type: :routing do
|
||||
describe "routing" do
|
||||
|
||||
it "routes root to #index" do
|
||||
|
||||
Reference in New Issue
Block a user