Created
November 1, 2011 23:15
-
-
Save anlek/1332245 to your computer and use it in GitHub Desktop.
Draper Issue
This file contains 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
require File.expand_path('../boot', __FILE__) | |
# Pick the frameworks you want: | |
# require "active_record/railtie" | |
require "action_controller/railtie" | |
require "action_mailer/railtie" | |
require "active_resource/railtie" | |
require "sprockets/railtie" | |
#require "rails/test_unit/railtie" | |
# If you have a Gemfile, require the gems listed there, including any gems | |
# you've limited to :test, :development, or :production. | |
if defined?(Bundler) | |
# If you precompile assets before deploying to production, use this line | |
Bundler.require *Rails.groups(:assets => %w(development test)) | |
# If you want your assets lazily compiled in production, use this line | |
# Bundler.require(:default, :assets, Rails.env) | |
end | |
# snipped rest of code. |
This file contains 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/chriseppstein/compass.git | |
revision: 3a4c5c75dca9f07f6edf2f0898a4626269e0ed62 | |
specs: | |
compass (0.12.alpha.0.3a4c5c7) | |
chunky_png (~> 1.2) | |
fssm (>= 0.2.7) | |
sass (~> 3.1) | |
GIT | |
remote: git://github.com/thetron/css3buttons_rails_helpers.git | |
revision: e88e8353006c1d9fcd077a06c9cff43d032baf01 | |
specs: | |
css3buttons (1.0.1) | |
actionpack (>= 3.0.0) | |
GEM | |
remote: http://rubygems.org/ | |
specs: | |
SystemTimer (1.2.3) | |
actionmailer (3.1.1) | |
actionpack (= 3.1.1) | |
mail (~> 2.3.0) | |
actionpack (3.1.1) | |
activemodel (= 3.1.1) | |
activesupport (= 3.1.1) | |
builder (~> 3.0.0) | |
erubis (~> 2.7.0) | |
i18n (~> 0.6) | |
rack (~> 1.3.2) | |
rack-cache (~> 1.1) | |
rack-mount (~> 0.8.2) | |
rack-test (~> 0.6.1) | |
sprockets (~> 2.0.2) | |
active_reload (0.6.1) | |
active_utils (1.0.1) | |
activesupport (>= 2.3.11) | |
i18n | |
activemerchant (1.18.1) | |
active_utils (>= 1.0.1) | |
activesupport (>= 2.3.11) | |
braintree (>= 2.0.0) | |
builder (>= 2.0.0) | |
i18n | |
json (>= 1.5.1) | |
money | |
activemodel (3.1.1) | |
activesupport (= 3.1.1) | |
builder (~> 3.0.0) | |
i18n (~> 0.6) | |
activerecord (3.1.1) | |
activemodel (= 3.1.1) | |
activesupport (= 3.1.1) | |
arel (~> 2.2.1) | |
tzinfo (~> 0.3.29) | |
activeresource (3.1.1) | |
activemodel (= 3.1.1) | |
activesupport (= 3.1.1) | |
activesupport (3.1.1) | |
multi_json (~> 1.0) | |
addressable (2.2.6) | |
analytical (3.0.9) | |
app_config (0.7.1) | |
arel (2.2.1) | |
bcrypt-ruby (3.0.1) | |
braintree (2.12.0) | |
builder (>= 2.0.0) | |
bson (1.4.1) | |
bson_ext (1.4.1) | |
builder (3.0.0) | |
cancan (1.6.7) | |
capistrano (2.9.0) | |
highline | |
net-scp (>= 1.0.0) | |
net-sftp (>= 2.0.0) | |
net-ssh (>= 2.0.14) | |
net-ssh-gateway (>= 1.1.0) | |
capybara (1.1.1) | |
mime-types (>= 1.16) | |
nokogiri (>= 1.3.3) | |
rack (>= 1.0.0) | |
rack-test (>= 0.5.4) | |
selenium-webdriver (~> 2.0) | |
xpath (~> 0.1.4) | |
childprocess (0.2.2) | |
ffi (~> 1.0.6) | |
chronic (0.6.4) | |
chunky_png (1.2.5) | |
ckeditor (3.5.4) | |
mime-types (>= 1.16) | |
cocaine (0.2.0) | |
coderay (0.9.8) | |
coffee-rails (3.1.1) | |
coffee-script (>= 2.2.0) | |
railties (~> 3.1.0) | |
coffee-script (2.2.0) | |
coffee-script-source | |
execjs | |
coffee-script-source (1.1.2) | |
crack (0.3.1) | |
cucumber (1.1.1) | |
builder (>= 2.1.2) | |
diff-lcs (>= 1.1.2) | |
gherkin (~> 2.6.0) | |
json (>= 1.4.6) | |
term-ansicolor (>= 1.0.6) | |
cucumber-rails (1.1.1) | |
capybara (>= 1.1.1) | |
cucumber (>= 1.1.0) | |
nokogiri (>= 1.5.0) | |
daemons (1.1.4) | |
database_cleaner (0.6.7) | |
delayed_job (2.1.4) | |
activesupport (~> 3.0) | |
daemons | |
delayed_job_mongoid (1.0.4) | |
delayed_job (~> 2.1.1) | |
mongoid (>= 2.0) | |
delorean (1.1.0) | |
chronic | |
devise (1.4.9) | |
bcrypt-ruby (~> 3.0) | |
orm_adapter (~> 0.0.3) | |
warden (~> 1.0.3) | |
diff-lcs (1.1.3) | |
draper (0.9.5) | |
activesupport (>= 2.3.10) | |
draper-cancan (0.1.1) | |
cancan | |
draper | |
em-websocket (0.3.5) | |
addressable (>= 2.1.1) | |
eventmachine (>= 0.12.9) | |
email_spec (1.2.1) | |
mail (~> 2.2) | |
rspec (~> 2.0) | |
erubis (2.7.0) | |
eventmachine (0.12.10) | |
execjs (1.2.9) | |
multi_json (~> 1.0) | |
factory_girl (2.2.0) | |
activesupport | |
factory_girl_rails (1.3.0) | |
factory_girl (~> 2.2.0) | |
railties (>= 3.0.0) | |
fast-stemmer (1.0.0) | |
fastercsv (1.5.4) | |
ffi (1.0.9) | |
fssm (0.2.7) | |
gherkin (2.6.2) | |
json (>= 1.4.6) | |
gibbon (0.3.1) | |
activesupport (>= 2.3.14) | |
activesupport (>= 2.3.14) | |
httparty (> 0.6.0) | |
httparty (> 0.6.0) | |
json (> 1.4.0) | |
json (> 1.4.0) | |
rdoc | |
googlestaticmap (1.1.0) | |
growl (1.0.3) | |
guard (0.8.8) | |
thor (~> 0.14.6) | |
guard-bundler (0.1.3) | |
bundler (>= 1.0.0) | |
guard (>= 0.2.2) | |
guard-cucumber (0.7.3) | |
cucumber (>= 0.10) | |
guard (>= 0.8.3) | |
guard-livereload (0.3.1) | |
em-websocket (>= 0.2.0) | |
guard (>= 0.4.0) | |
multi_json (~> 1.0.3) | |
guard-pow (0.2.1) | |
guard (>= 0.3.0) | |
guard-rspec (0.5.1) | |
guard (>= 0.8.4) | |
has_scope (0.5.1) | |
highline (1.6.2) | |
hike (1.2.1) | |
hoptoad_notifier (2.4.11) | |
activesupport | |
builder | |
httparty (0.8.1) | |
multi_json | |
multi_xml | |
i18n (0.6.0) | |
inherited_resources (1.2.2) | |
has_scope (~> 0.5.0) | |
responders (~> 0.6.0) | |
json (1.6.1) | |
json_pure (1.6.1) | |
kaminari (0.12.4) | |
rails (>= 3.0.0) | |
launchy (2.0.5) | |
addressable (~> 2.2.6) | |
mail (2.3.0) | |
i18n (>= 0.4.0) | |
mime-types (~> 1.16) | |
treetop (~> 1.4.8) | |
metaclass (0.0.1) | |
method_source (0.6.7) | |
ruby_parser (>= 2.3.1) | |
mime-types (1.17.2) | |
mocha (0.10.0) | |
metaclass (~> 0.0.1) | |
modernizr-rails (2.0.6) | |
money (4.0.1) | |
i18n (~> 0.4) | |
json | |
mongo (1.4.1) | |
bson (= 1.4.1) | |
mongoid (2.3.3) | |
activemodel (~> 3.1) | |
mongo (~> 1.3) | |
tzinfo (~> 0.3.22) | |
mongoid-paperclip (0.0.7) | |
paperclip (>= 2.3.6) | |
mongoid-rspec (1.4.4) | |
mongoid (~> 2.0) | |
rspec (~> 2) | |
mongoid_search (0.2.7) | |
bson_ext (>= 1.2) | |
fast-stemmer (~> 1.0.0) | |
mongoid (>= 2.0.0) | |
mongoid_slug (0.8.3) | |
mongoid (~> 2.0) | |
stringex (~> 1.3) | |
multi_json (1.0.3) | |
multi_xml (0.4.1) | |
net-scp (1.0.4) | |
net-ssh (>= 1.99.1) | |
net-sftp (2.0.5) | |
net-ssh (>= 2.0.9) | |
net-ssh (2.2.1) | |
net-ssh-gateway (1.1.0) | |
net-ssh (>= 1.99.1) | |
newrelic_rpm (3.2.0) | |
nokogiri (1.5.0) | |
orm_adapter (0.0.5) | |
paperclip (2.4.5) | |
activerecord (>= 2.3.0) | |
activesupport (>= 2.3.2) | |
cocaine (>= 0.0.2) | |
mime-types | |
polyglot (0.3.3) | |
pry (0.9.7.3) | |
coderay (~> 0.9.8) | |
method_source (~> 0.6.7) | |
ruby_parser (>= 2.3.1) | |
slop (~> 2.1.0) | |
pry-doc (0.3.0) | |
pry (>= 0.9.0) | |
yard (>= 0.6.4) | |
rack (1.3.5) | |
rack-cache (1.1) | |
rack (>= 0.4) | |
rack-mount (0.8.3) | |
rack (>= 1.0.0) | |
rack-ssl (1.3.2) | |
rack | |
rack-test (0.6.1) | |
rack (>= 1.0) | |
rails (3.1.1) | |
actionmailer (= 3.1.1) | |
actionpack (= 3.1.1) | |
activerecord (= 3.1.1) | |
activeresource (= 3.1.1) | |
activesupport (= 3.1.1) | |
bundler (~> 1.0) | |
railties (= 3.1.1) | |
rails3-generators (0.17.4) | |
railties (>= 3.0.0) | |
railties (3.1.1) | |
actionpack (= 3.1.1) | |
activesupport (= 3.1.1) | |
rack-ssl (~> 1.3.2) | |
rake (>= 0.8.7) | |
rdoc (~> 3.4) | |
thor (~> 0.14.6) | |
rake (0.9.2.2) | |
rb-fsevent (0.4.3.1) | |
rdoc (3.11) | |
json (~> 1.4) | |
redcarpet (1.17.2) | |
remarkable (4.0.0.alpha4) | |
rspec (>= 2.0.0.alpha11) | |
remarkable_activemodel (4.0.0.alpha4) | |
remarkable (~> 4.0.0.alpha4) | |
rspec (>= 2.0.0.alpha11) | |
remarkable_mongoid (0.6.0) | |
remarkable_activemodel (~> 4.0.0.alpha4) | |
responders (0.6.4) | |
right-rails (1.2.2) | |
rspec (2.7.0) | |
rspec-core (~> 2.7.0) | |
rspec-expectations (~> 2.7.0) | |
rspec-mocks (~> 2.7.0) | |
rspec-core (2.7.1) | |
rspec-expectations (2.7.0) | |
diff-lcs (~> 1.1.2) | |
rspec-mocks (2.7.0) | |
rspec-rails (2.7.0) | |
actionpack (~> 3.0) | |
activesupport (~> 3.0) | |
railties (~> 3.0) | |
rspec (~> 2.7.0) | |
ruby_parser (2.3.1) | |
sexp_processor (~> 3.0) | |
rubyzip (0.9.4) | |
sass (3.1.10) | |
sass-rails (3.1.4) | |
actionpack (~> 3.1.0) | |
railties (~> 3.1.0) | |
sass (>= 3.1.4) | |
sprockets (~> 2.0.0) | |
tilt (~> 1.3.2) | |
selenium-webdriver (2.10.0) | |
childprocess (>= 0.2.1) | |
ffi (= 1.0.9) | |
json_pure | |
rubyzip | |
sendgrid (1.0.1) | |
json | |
json | |
sexp_processor (3.0.7) | |
simple_form (1.5.2) | |
actionpack (~> 3.0) | |
activemodel (~> 3.0) | |
slim (1.0.3) | |
temple (~> 0.3.4) | |
tilt (~> 1.3.2) | |
slop (2.1.0) | |
sprockets (2.0.3) | |
hike (~> 1.2) | |
rack (~> 1.0) | |
tilt (~> 1.1, != 1.3.0) | |
stringex (1.3.0) | |
temple (0.3.4) | |
term-ansicolor (1.0.7) | |
thor (0.14.6) | |
tilt (1.3.3) | |
treetop (1.4.10) | |
polyglot | |
polyglot (>= 0.3.1) | |
tzinfo (0.3.30) | |
uglifier (1.0.4) | |
execjs (>= 0.3.0) | |
multi_json (>= 1.0.2) | |
vcr (1.11.3) | |
warden (1.0.6) | |
rack (>= 1.0) | |
webmock (1.7.7) | |
addressable (~> 2.2, > 2.2.5) | |
crack (>= 0.1.7) | |
wicked_pdf (0.7.2) | |
xpath (0.1.4) | |
nokogiri (~> 1.3) | |
yard (0.7.3) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
SystemTimer | |
active_reload | |
activemerchant | |
analytical | |
app_config | |
bson_ext | |
cancan | |
capistrano | |
capybara | |
ckeditor (~> 3.5.4) | |
coffee-rails (~> 3.1.0) | |
compass! | |
css3buttons! | |
cucumber-rails | |
database_cleaner | |
delayed_job | |
delayed_job_mongoid | |
delorean | |
devise | |
draper | |
draper-cancan | |
email_spec | |
factory_girl_rails | |
fastercsv | |
gibbon | |
googlestaticmap | |
growl | |
guard-bundler | |
guard-cucumber | |
guard-livereload | |
guard-pow | |
guard-rspec | |
has_scope | |
hoptoad_notifier | |
inherited_resources (~> 1.2.1) | |
json | |
kaminari | |
launchy | |
mocha | |
modernizr-rails | |
mongoid | |
mongoid-paperclip | |
mongoid-rspec | |
mongoid_search | |
mongoid_slug | |
newrelic_rpm | |
paperclip | |
pry | |
pry-doc | |
rails (>= 3.1.0) | |
rails3-generators | |
rb-fsevent | |
redcarpet | |
remarkable_mongoid | |
responders | |
right-rails | |
rspec-rails (>= 2.0.0) | |
sass-rails (~> 3.1.0) | |
sendgrid | |
simple_form | |
slim | |
uglifier | |
vcr | |
webmock | |
wicked_pdf |
This file contains 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
/Users/andrew/code/rails_apps/example/vendor/ruby/1.9.1/gems/draper-0.9.5/lib/draper/system.rb:4:in `setup': uninitialized constant Draper::ViewContextFilter (NameError) | |
from /Users/andrew/code/rails_apps/example/vendor/ruby/1.9.1/gems/draper-0.9.5/lib/draper.rb:10:in `<top (required)>' | |
from /Users/andrew/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/runtime.rb:68:in `require' | |
from /Users/andrew/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/runtime.rb:68:in `block (2 levels) in require' | |
from /Users/andrew/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/runtime.rb:66:in `each' | |
from /Users/andrew/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/runtime.rb:66:in `block in require' | |
from /Users/andrew/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/runtime.rb:55:in `each' | |
from /Users/andrew/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/runtime.rb:55:in `require' | |
from /Users/andrew/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler.rb:128:in `require' | |
from /Users/andrew/code/rails_apps/example/config/application.rb:16:in `<top (required)>' | |
from /Users/andrew/code/rails_apps/example/config/environment.rb:2:in `require' | |
from /Users/andrew/code/rails_apps/example/config/environment.rb:2:in `<top (required)>' | |
from /Users/andrew/code/rails_apps/example/spec/spec_helper.rb:3:in `require' | |
from /Users/andrew/code/rails_apps/example/spec/spec_helper.rb:3:in `<top (required)>' | |
from /Users/andrew/code/rails_apps/example/spec/controllers/payment_notifications_controller_spec.rb:2:in `require' | |
from /Users/andrew/code/rails_apps/example/spec/controllers/payment_notifications_controller_spec.rb:2:in `<top (required)>' | |
from /Users/andrew/code/rails_apps/example/vendor/ruby/1.9.1/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in `load' | |
from /Users/andrew/code/rails_apps/example/vendor/ruby/1.9.1/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in `block in load_spec_files' | |
from /Users/andrew/code/rails_apps/example/vendor/ruby/1.9.1/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in `map' | |
from /Users/andrew/code/rails_apps/example/vendor/ruby/1.9.1/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in `load_spec_files' | |
from /Users/andrew/code/rails_apps/example/vendor/ruby/1.9.1/gems/rspec-core-2.7.1/lib/rspec/core/command_line.rb:18:in `run' | |
from /Users/andrew/code/rails_apps/example/vendor/ruby/1.9.1/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:80:in `run_in_process' | |
from /Users/andrew/code/rails_apps/example/vendor/ruby/1.9.1/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:69:in `run' | |
from /Users/andrew/code/rails_apps/example/vendor/ruby/1.9.1/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:10:in `block in autorun' |
This file contains 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
# encoding: utf-8 | |
require 'spec_helper' | |
require 'iconv' | |
describe PaymentNotificationsController do | |
# ... code snipped ... | |
end |
This file contains 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
# This file is copied to spec/ when you run 'rails generate rspec:install' | |
ENV["RAILS_ENV"] ||= 'test' | |
require File.expand_path("../../config/environment", __FILE__) | |
require 'rspec/rails' | |
# 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} | |
RSpec.configure do |config| | |
# == Mock Framework | |
# | |
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: | |
# | |
config.mock_with :mocha | |
# config.mock_with :flexmock | |
# config.mock_with :rr | |
# config.mock_with :rspec | |
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures | |
# config.fixture_path = "#{::Rails.root}/spec/fixtures" | |
# If you're not using ActiveRecord, or you'd prefer not to run each of your | |
# examples within a transaction, remove the following line or assign false | |
# instead of true. | |
# config.use_transactional_fixtures = false | |
config.include Delorean | |
config.include Mongoid::Matchers | |
config.extend VCR::RSpec::Macros | |
DatabaseCleaner.strategy = :truncation | |
config.before(:each) do | |
DatabaseCleaner.start | |
end | |
config.after(:each) do | |
DatabaseCleaner.clean | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is related to: https://github.com/jcasimir/draper/issues/73