specs in the green

This commit is contained in:
2014-07-14 16:35:32 +02:00
parent 13173d0ecc
commit d7adc32c2c
6 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ require File.expand_path('./../../lib/couchbase-setting', __FILE__)
if defined?(Bundler) if defined?(Bundler)
# If you precompile assets before deploying to production, use this line # If you precompile assets before deploying to production, use this line
Bundler.require(*Rails.groups(assets: %w(development test))) Bundler.require(*Rails.groups(assets: %w(development test)))
Bundler.require(:assets) if ENV['QWAITER_MOBILE_EXPORT']='yes' Bundler.require(:assets) if ENV['QWAITER_MOBILE_EXPORT']=='yes'
# If you want your assets lazily compiled in production, use this line # If you want your assets lazily compiled in production, use this line
# Bundler.require(:default, :assets, Rails.env) # Bundler.require(:default, :assets, Rails.env)
end end
+1
View File
@@ -24,6 +24,7 @@ describe Supplier do
Qwaiter::Counter.set "supplier_counter:#{supplier.id}:orders_placed", 9 Qwaiter::Counter.set "supplier_counter:#{supplier.id}:orders_placed", 9
supplier.orders_placed_count.should == 9 supplier.orders_placed_count.should == 9
Supplier.reset_counters! Supplier.reset_counters!
sleep 0.5
supplier.orders_placed_count.should == 0 supplier.orders_placed_count.should == 0
Qwaiter::Counter.connection = old_connection Qwaiter::Counter.connection = old_connection
end end
+1 -1
View File
@@ -1,6 +1,6 @@
require "spec_helper" 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'){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('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')} it('handles about page as root'){ get('/about').should route_to('pages#show', name: 'about', locale: 'nl')}
+1 -1
View File
@@ -1,6 +1,6 @@
require "spec_helper" require "spec_helper"
describe SupplierController do describe SupplierController, type: :routing do
describe "routing" do describe "routing" do
it "routes root to #home" do it "routes root to #home" do
+1 -1
View File
@@ -1,6 +1,6 @@
require "spec_helper" require "spec_helper"
describe UserController do describe UserController, type: :routing do
describe "routing" do describe "routing" do
it "routes root to #index" do it "routes root to #index" do
+3
View File
@@ -43,10 +43,13 @@ Release
General: General:
- search for class btn and replace with font awesome correct styling if - search for class btn and replace with font awesome correct styling if
needed needed
- theme1 site alert styling (zurb?)
- devise styling
Bugs: Bugs:
- Dragging supplier table from one section to the other fails - Dragging supplier table from one section to the other fails
- Supplier section print qr codes does not give proper images - Supplier section print qr codes does not give proper images
- Supplier tables pagination styling - Supplier tables pagination styling
- supplier counters in user view (no supplier in active list?)
Post release Post release
------------ ------------