Created
September 24, 2015 18:48
-
-
Save kimadactyl/c1ada3dcbe5e41f6484a to your computer and use it in GitHub Desktop.
Spree + Minitest + ControllerRequsts isn't happy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 5.0' | |
# Use Uglifier as compressor for JavaScript assets | |
gem 'uglifier', '>= 1.3.0' | |
# Use CoffeeScript for .coffee assets and views | |
gem 'coffee-rails', '~> 4.1.0' | |
# See https://github.com/rails/execjs#readme for more supported runtimes | |
# gem 'therubyracer', platforms: :ruby | |
# Use jquery as the JavaScript library | |
gem 'jquery-rails' | |
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks | |
gem 'turbolinks' | |
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder | |
gem 'jbuilder', '~> 2.0' | |
# bundle exec rake doc:rails generates the API under doc/api. | |
gem 'sdoc', '~> 0.4.0', group: :doc | |
# Foundation | |
gem 'foundation-rails' | |
# Use ActiveModel has_secure_password | |
gem 'bcrypt', '~> 3.1.7' | |
# Markdown conversion | |
gem 'redcarpet' | |
# Database | |
gem 'pg' | |
# Include videos | |
gem 'ruby-oembed' | |
# Pagination | |
# gem 'will_paginate' | |
# gem 'foundation-will_paginate' | |
# Use Unicorn as the app server | |
# gem 'unicorn' | |
# Use Capistrano for deployment | |
gem 'capistrano-rails', group: :development | |
group :development, :test do | |
# Call 'byebug' anywhere in the code to stop execution and get a debugger console | |
gem 'byebug' | |
# Access an IRB console on exception pages or by using <%= console %> in views | |
gem 'web-console', '~> 2.0' | |
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring | |
gem 'spring' | |
# Test objects | |
gem 'factory_girl' | |
# Fake some content | |
gem 'ffaker' | |
# Clean some databases after tests | |
gem 'database_cleaner' | |
end | |
group :development do | |
end | |
group :test do | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3' | |
# Normal test stack | |
gem 'minitest-rails' | |
gem 'minitest-reporters' | |
gem 'mini_backtrace' | |
gem 'guard' | |
gem 'guard-minitest' | |
# Tests for store | |
# gem 'rspec-rails' | |
end | |
group :production do | |
# Heroku gem for serving static assets | |
gem 'rails_12factor' | |
end | |
# Shopping | |
gem 'spree', '3.0.4' | |
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable' | |
# gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIT | |
remote: git://github.com/spree/spree_gateway.git | |
revision: 7301dc7c84c05b46427bf5003eda13ca64a48d7c | |
branch: 3-0-stable | |
specs: | |
spree_gateway (3.0.0.beta) | |
spree_core (~> 3.0.0) | |
GEM | |
remote: https://rubygems.org/ | |
specs: | |
actionmailer (4.2.4) | |
actionpack (= 4.2.4) | |
actionview (= 4.2.4) | |
activejob (= 4.2.4) | |
mail (~> 2.5, >= 2.5.4) | |
rails-dom-testing (~> 1.0, >= 1.0.5) | |
actionpack (4.2.4) | |
actionview (= 4.2.4) | |
activesupport (= 4.2.4) | |
rack (~> 1.6) | |
rack-test (~> 0.6.2) | |
rails-dom-testing (~> 1.0, >= 1.0.5) | |
rails-html-sanitizer (~> 1.0, >= 1.0.2) | |
actionview (4.2.4) | |
activesupport (= 4.2.4) | |
builder (~> 3.1) | |
erubis (~> 2.7.0) | |
rails-dom-testing (~> 1.0, >= 1.0.5) | |
rails-html-sanitizer (~> 1.0, >= 1.0.2) | |
activejob (4.2.4) | |
activesupport (= 4.2.4) | |
globalid (>= 0.3.0) | |
activemerchant (1.47.0) | |
activesupport (>= 3.2.14, < 5.0.0) | |
builder (>= 2.1.2, < 4.0.0) | |
i18n (>= 0.6.9) | |
nokogiri (~> 1.4) | |
activemodel (4.2.4) | |
activesupport (= 4.2.4) | |
builder (~> 3.1) | |
activerecord (4.2.4) | |
activemodel (= 4.2.4) | |
activesupport (= 4.2.4) | |
arel (~> 6.0) | |
activesupport (4.2.4) | |
i18n (~> 0.7) | |
json (~> 1.7, >= 1.7.7) | |
minitest (~> 5.1) | |
thread_safe (~> 0.3, >= 0.3.4) | |
tzinfo (~> 1.1) | |
acts_as_list (0.7.2) | |
activerecord (>= 3.0) | |
addressable (2.3.8) | |
ansi (1.5.0) | |
arel (6.0.3) | |
autoprefixer-rails (6.0.3) | |
execjs | |
json | |
awesome_nested_set (3.0.2) | |
activerecord (>= 4.0.0, < 5) | |
bcrypt (3.1.10) | |
binding_of_caller (0.7.2) | |
debug_inspector (>= 0.0.1) | |
bootstrap-sass (3.3.5.1) | |
autoprefixer-rails (>= 5.0.0.1) | |
sass (>= 3.3.0) | |
builder (3.2.2) | |
byebug (6.0.2) | |
camertron-eprun (1.1.0) | |
cancancan (1.10.1) | |
canonical-rails (0.0.11) | |
rails (>= 3.1, < 5.0) | |
capistrano (3.4.0) | |
i18n | |
rake (>= 10.0.0) | |
sshkit (~> 1.3) | |
capistrano-bundler (1.1.4) | |
capistrano (~> 3.1) | |
sshkit (~> 1.2) | |
capistrano-rails (1.1.3) | |
capistrano (~> 3.1) | |
capistrano-bundler (~> 1.1) | |
carmen (1.0.2) | |
activesupport (>= 3.0.0) | |
cldr-plurals-runtime-rb (1.0.0) | |
climate_control (0.0.3) | |
activesupport (>= 3.0) | |
cocaine (0.5.7) | |
climate_control (>= 0.0.3, < 1.0) | |
coderay (1.1.0) | |
coffee-rails (4.1.0) | |
coffee-script (>= 2.2.0) | |
railties (>= 4.0.0, < 5.0) | |
coffee-script (2.4.1) | |
coffee-script-source | |
execjs | |
coffee-script-source (1.9.1.1) | |
colorize (0.7.7) | |
css_parser (1.3.7) | |
addressable | |
database_cleaner (1.5.0) | |
debug_inspector (0.0.2) | |
deface (1.0.1) | |
colorize (>= 0.5.8) | |
nokogiri (~> 1.6.0) | |
polyglot | |
rails (>= 3.1) | |
erubis (2.7.0) | |
execjs (2.6.0) | |
factory_girl (4.5.0) | |
activesupport (>= 3.0.0) | |
ffaker (1.32.1) | |
ffi (1.9.10) | |
font-awesome-rails (4.4.0.0) | |
railties (>= 3.2, < 5.0) | |
formatador (0.2.5) | |
foundation-rails (5.5.2.1) | |
railties (>= 3.1.0) | |
sass (>= 3.3.0, < 3.5) | |
friendly_id (5.1.0) | |
activerecord (>= 4.0.0) | |
globalid (0.3.6) | |
activesupport (>= 4.1.0) | |
guard (2.13.0) | |
formatador (>= 0.2.4) | |
listen (>= 2.7, <= 4.0) | |
lumberjack (~> 1.0) | |
nenv (~> 0.1) | |
notiffany (~> 0.0) | |
pry (>= 0.9.12) | |
shellany (~> 0.0) | |
thor (>= 0.18.1) | |
guard-compat (1.2.1) | |
guard-minitest (2.4.4) | |
guard-compat (~> 1.2) | |
minitest (>= 3.0) | |
highline (1.6.21) | |
htmlentities (4.3.4) | |
httparty (0.13.7) | |
json (~> 1.8) | |
multi_xml (>= 0.5.2) | |
i18n (0.7.0) | |
jbuilder (2.3.1) | |
activesupport (>= 3.0.0, < 5) | |
multi_json (~> 1.2) | |
jquery-rails (4.0.5) | |
rails-dom-testing (~> 1.0) | |
railties (>= 4.2.0) | |
thor (>= 0.14, < 2.0) | |
jquery-ui-rails (5.0.5) | |
railties (>= 3.2.16) | |
json (1.8.3) | |
kaminari (0.16.3) | |
actionpack (>= 3.0.0) | |
activesupport (>= 3.0.0) | |
listen (3.0.3) | |
rb-fsevent (>= 0.9.3) | |
rb-inotify (>= 0.9) | |
loofah (2.0.3) | |
nokogiri (>= 1.5.9) | |
lumberjack (1.0.9) | |
mail (2.6.3) | |
mime-types (>= 1.16, < 3) | |
method_source (0.8.2) | |
mime-types (2.6.2) | |
mini_backtrace (0.1.3) | |
minitest (> 1.2.0) | |
rails (>= 2.3.3) | |
mini_portile (0.6.2) | |
minitest (5.8.1) | |
minitest-rails (2.2.0) | |
minitest (~> 5.7) | |
railties (~> 4.1) | |
minitest-reporters (1.1.0) | |
ansi | |
builder | |
minitest (>= 5.0) | |
ruby-progressbar | |
monetize (1.3.1) | |
money (~> 6.6) | |
money (6.6.1) | |
i18n (>= 0.6.4, <= 0.7.0) | |
multi_json (1.11.2) | |
multi_xml (0.5.5) | |
nenv (0.2.0) | |
net-scp (1.2.1) | |
net-ssh (>= 2.6.5) | |
net-ssh (2.10.0) | |
nokogiri (1.6.6.2) | |
mini_portile (~> 0.6.0) | |
notiffany (0.0.8) | |
nenv (~> 0.1) | |
shellany (~> 0.0) | |
paperclip (4.2.4) | |
activemodel (>= 3.2.0) | |
activesupport (>= 3.2.0) | |
cocaine (~> 0.5.5) | |
mime-types | |
paranoia (2.1.3) | |
activerecord (~> 4.0) | |
pg (0.18.3) | |
polyamorous (1.2.0) | |
activerecord (>= 3.0) | |
polyglot (0.3.5) | |
premailer (1.8.6) | |
css_parser (>= 1.3.6) | |
htmlentities (>= 4.0.0) | |
premailer-rails (1.8.2) | |
actionmailer (>= 3, < 5) | |
premailer (~> 1.7, >= 1.7.9) | |
pry (0.10.1) | |
coderay (~> 1.1.0) | |
method_source (~> 0.8.1) | |
slop (~> 3.4) | |
rabl (0.9.4.pre1) | |
activesupport (>= 2.3.14) | |
rack (1.6.4) | |
rack-test (0.6.3) | |
rack (>= 1.0) | |
rails (4.2.4) | |
actionmailer (= 4.2.4) | |
actionpack (= 4.2.4) | |
actionview (= 4.2.4) | |
activejob (= 4.2.4) | |
activemodel (= 4.2.4) | |
activerecord (= 4.2.4) | |
activesupport (= 4.2.4) | |
bundler (>= 1.3.0, < 2.0) | |
railties (= 4.2.4) | |
sprockets-rails | |
rails-deprecated_sanitizer (1.0.3) | |
activesupport (>= 4.2.0.alpha) | |
rails-dom-testing (1.0.7) | |
activesupport (>= 4.2.0.beta, < 5.0) | |
nokogiri (~> 1.6.0) | |
rails-deprecated_sanitizer (>= 1.0.1) | |
rails-html-sanitizer (1.0.2) | |
loofah (~> 2.0) | |
rails_12factor (0.0.3) | |
rails_serve_static_assets | |
rails_stdout_logging | |
rails_serve_static_assets (0.0.4) | |
rails_stdout_logging (0.0.4) | |
railties (4.2.4) | |
actionpack (= 4.2.4) | |
activesupport (= 4.2.4) | |
rake (>= 0.8.7) | |
thor (>= 0.18.1, < 2.0) | |
rake (10.4.2) | |
ransack (1.4.1) | |
actionpack (>= 3.0) | |
activerecord (>= 3.0) | |
activesupport (>= 3.0) | |
i18n | |
polyamorous (~> 1.1) | |
rb-fsevent (0.9.6) | |
rb-inotify (0.9.5) | |
ffi (>= 0.5.0) | |
rdoc (4.2.0) | |
json (~> 1.4) | |
redcarpet (3.3.2) | |
responders (2.1.0) | |
railties (>= 4.2.0, < 5) | |
ruby-oembed (0.8.14) | |
ruby-progressbar (1.7.5) | |
sass (3.4.18) | |
sass-rails (5.0.4) | |
railties (>= 4.0.0, < 5.0) | |
sass (~> 3.1) | |
sprockets (>= 2.8, < 4.0) | |
sprockets-rails (>= 2.0, < 4.0) | |
tilt (>= 1.1, < 3) | |
sdoc (0.4.1) | |
json (~> 1.7, >= 1.7.7) | |
rdoc (~> 4.0) | |
select2-rails (3.5.9.1) | |
thor (~> 0.14) | |
shellany (0.0.1) | |
slop (3.6.0) | |
spree (3.0.4) | |
spree_api (= 3.0.4) | |
spree_backend (= 3.0.4) | |
spree_cmd (= 3.0.4) | |
spree_core (= 3.0.4) | |
spree_frontend (= 3.0.4) | |
spree_sample (= 3.0.4) | |
spree_api (3.0.4) | |
rabl (~> 0.9.4.pre1) | |
spree_core (= 3.0.4) | |
versioncake (~> 2.3.1) | |
spree_backend (3.0.4) | |
bootstrap-sass (~> 3.3.1) | |
jquery-rails (~> 4.0.3) | |
jquery-ui-rails (~> 5.0.0) | |
select2-rails (= 3.5.9.1) | |
spree_api (= 3.0.4) | |
spree_core (= 3.0.4) | |
sprockets-rails (~> 2.2) | |
spree_cmd (3.0.4) | |
thor (~> 0.14) | |
spree_core (3.0.4) | |
activemerchant (~> 1.47.0) | |
acts_as_list (~> 0.6) | |
awesome_nested_set (~> 3.0.1) | |
cancancan (~> 1.10.1) | |
carmen (~> 1.0.0) | |
deface (~> 1.0.0) | |
ffaker (~> 1.16) | |
font-awesome-rails (~> 4.0) | |
friendly_id (~> 5.1.0) | |
highline (~> 1.6.18) | |
httparty (~> 0.11) | |
json (~> 1.7) | |
kaminari (~> 0.15, >= 0.15.1) | |
monetize (~> 1.1) | |
paperclip (~> 4.2.0) | |
paranoia (~> 2.1.0) | |
premailer-rails | |
rails (~> 4.2.2) | |
ransack (~> 1.4.1) | |
responders | |
state_machines-activerecord (~> 0.2) | |
stringex | |
truncate_html (= 0.9.2) | |
twitter_cldr (~> 3.0) | |
spree_frontend (3.0.4) | |
bootstrap-sass (~> 3.3.1) | |
canonical-rails (~> 0.0.4) | |
jquery-rails (~> 4.0.3) | |
spree_api (= 3.0.4) | |
spree_core (= 3.0.4) | |
sprockets-rails (~> 2.2) | |
spree_sample (3.0.4) | |
spree_core (= 3.0.4) | |
spring (1.4.0) | |
sprockets (3.3.4) | |
rack (~> 1.0) | |
sprockets-rails (2.3.3) | |
actionpack (>= 3.0) | |
activesupport (>= 3.0) | |
sprockets (>= 2.8, < 4.0) | |
sqlite3 (1.3.10) | |
sshkit (1.7.1) | |
colorize (>= 0.7.0) | |
net-scp (>= 1.1.2) | |
net-ssh (>= 2.8.0) | |
state_machines (0.4.0) | |
state_machines-activemodel (0.3.0) | |
activemodel (~> 4.1) | |
state_machines (>= 0.4.0) | |
state_machines-activerecord (0.3.0) | |
activerecord (~> 4.1) | |
state_machines-activemodel (>= 0.3.0) | |
stringex (2.5.2) | |
thor (0.19.1) | |
thread_safe (0.3.5) | |
tilt (2.0.1) | |
truncate_html (0.9.2) | |
turbolinks (2.5.3) | |
coffee-rails | |
twitter_cldr (3.2.1) | |
camertron-eprun | |
cldr-plurals-runtime-rb (~> 1.0.0) | |
json | |
tzinfo | |
tzinfo (1.2.2) | |
thread_safe (~> 0.1) | |
uglifier (2.7.2) | |
execjs (>= 0.3.0) | |
json (>= 1.8.0) | |
versioncake (2.3.1) | |
actionpack (>= 3.2) | |
activesupport (>= 3.2) | |
railties (>= 3.2) | |
tzinfo | |
web-console (2.2.1) | |
activemodel (>= 4.0) | |
binding_of_caller (>= 0.7.2) | |
railties (>= 4.0) | |
sprockets-rails (>= 2.0, < 4.0) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
bcrypt (~> 3.1.7) | |
byebug | |
capistrano-rails | |
coffee-rails (~> 4.1.0) | |
database_cleaner | |
factory_girl | |
ffaker | |
foundation-rails | |
guard | |
guard-minitest | |
jbuilder (~> 2.0) | |
jquery-rails | |
mini_backtrace | |
minitest-rails | |
minitest-reporters | |
pg | |
rails | |
rails_12factor | |
redcarpet | |
ruby-oembed | |
sass-rails (~> 5.0) | |
sdoc (~> 0.4.0) | |
spree (= 3.0.4) | |
spree_gateway! | |
spring | |
sqlite3 | |
turbolinks | |
uglifier (>= 1.3.0) | |
web-console (~> 2.0) | |
BUNDLED WITH | |
1.10.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# test/integration/spree/order_test.rb | |
require 'test_helper' | |
require 'spree/testing_support/preferences' | |
require 'spree/testing_support/factories' | |
require 'spree/testing_support/url_helpers' | |
require 'spree/testing_support/controller_requests' | |
class OrderTest < ActionDispatch::IntegrationTest | |
include FactoryGirl::Syntax::Methods | |
include Spree::TestingSupport::Preferences | |
include Spree::TestingSupport::UrlHelpers | |
include Spree::TestingSupport::ControllerRequests | |
def setup | |
@user = users(:kim) | |
@product = FactoryGirl.build(:product, slug: "tai-chi-foundation") | |
end | |
test "checkout flow" do | |
# Logged in | |
log_in_as(@user) | |
spree_get :index | |
assert_template "spree/index" | |
spree_get(@product) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kim@chips:~/taichi/taichi_rails$ rake test test/integration/spree/order_test.rb | |
rake aborted! | |
NoMethodError: undefined method `routes' for OrderTest:Class | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/spree_core-3.0.4/lib/spree/testing_support/controller_requests.rb:32:in `block in <module:ControllerRequests>' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.4/lib/active_support/concern.rb:120:in `class_eval' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.4/lib/active_support/concern.rb:120:in `append_features' | |
/home/kim/taichi/taichi_rails/test/integration/spree/order_test.rb:11:in `include' | |
/home/kim/taichi/taichi_rails/test/integration/spree/order_test.rb:11:in `<class:OrderTest>' | |
/home/kim/taichi/taichi_rails/test/integration/spree/order_test.rb:7:in `<top (required)>' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/railties-4.2.4/lib/rails/test_unit/sub_test_task.rb:114:in `block (3 levels) in define' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/railties-4.2.4/lib/rails/test_unit/sub_test_task.rb:114:in `each' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/railties-4.2.4/lib/rails/test_unit/sub_test_task.rb:114:in `block (2 levels) in define' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/railties-4.2.4/lib/rails/test_unit/sub_test_task.rb:113:in `each' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/railties-4.2.4/lib/rails/test_unit/sub_test_task.rb:113:in `block in define' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/railties-4.2.4/lib/rails/test_unit/sub_test_task.rb:31:in `create_and_run_single_test' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/railties-4.2.4/lib/rails/test_unit/sub_test_task.rb:17:in `invoke_rake_task' | |
/home/kim/.rvm/gems/ruby-2.1.5/gems/railties-4.2.4/lib/rails/test_unit/testing.rake:8:in `block in <top (required)>' | |
/home/kim/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `eval' | |
/home/kim/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `<main>' | |
Tasks: TOP => test:single | |
(See full trace by running task with --trace) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment