Qwaiter supplier on Ember 1.0

This commit is contained in:
2013-09-30 17:49:22 +02:00
parent 6d7647c2c5
commit 8ea2e79dc2
44 changed files with 378 additions and 156 deletions
+11 -7
View File
@@ -2,16 +2,19 @@
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'rspec/matchers'
require 'capybara/rspec'
require 'turnip/capybara'
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
#Dir[Rails.root.join("spec/factories/**/*.rb")].each {|f| require f }
Dir.glob("spec/acceptance_steps/**/*steps.rb") { |f| load f, true }
I18n.locale = :en
I18n.locale = Rails.configuration.i18n.default_locale
Devise.stretches = 1
Capybara.javascript_driver = :selenium
Capybara.javascript_driver = :webkit
#Capybara.default_driver = :selenium
module FactoryAttributesFor
@@ -45,7 +48,7 @@ RSpec.configure do |config|
config.tty = true
# Use the specified formatter
config.formatter = :documentation # :progress, :html, :textmate
#config.formatter = :documentation # :progress, :html, :textmate
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
#config.fixture_path = "#{::Rails.root}/spec/fixtures"
@@ -58,10 +61,11 @@ RSpec.configure do |config|
config.before :each do
CouchPotato.couchrest_database.recreate!
end
config.before :each, type: :request do
#Capybara.current_driver = :selenium
#sign_in_user_through_request
config.before :each, type: :feature do
Supplier.any_instance.stub send_confirmation_instructions: true
end
# If true, the base class of anonymous controllers will be inferred
# automatically. This will be the default behavior in future versions of
# rspec-rails.