-
-
Save dagi3d/6498b1c0ab4b286d03b0 to your computer and use it in GitHub Desktop.
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
Failures: | |
1) FacebookController the facebook cookie is set should retrieve the facebook user data | |
Failure/Error: describe FacebookController do | |
undefined method `env_defaults' for nil:NilClass | |
# spec/fbrails/fbrails_spec.rb:6 | |
Finished in 0.00316 seconds | |
1 example, 1 failure | |
rake aborted! | |
Command failed with status (1): [/usr/local/ruby-enterprise-1.8.7/bin/ruby ...] | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in `sh' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `call' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `sh' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in `sh' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1029:in `ruby' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in `ruby' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/core/rake_task.rb:70:in `define' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1112:in `verbose' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/core/rake_task.rb:65:in `send' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.20/lib/rspec/core/rake_task.rb:65:in `define' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/1.8/monitor.rb:242:in `synchronize' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' | |
/usr/local/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 | |
//usr/local/ruby/bin/rake:19:in `load' | |
//usr/local/ruby/bin/rake:19 |
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('./../../spec_helper', __FILE__) | |
class FacebookController < ActionController::Base | |
end | |
describe FacebookController do | |
include RSpec::Rails::ControllerExampleGroup | |
context "the facebook cookie is set" do | |
before(:each) do | |
cookie_value = '"access_token=125199480861838|2.oAHFO_vwpxqZ9cCVFbmg__.3600.1282615200-1128841670|FWxUhgVvmoRH9AT7oHNsF9RUXUk.&expires=1282615200&secret=mbEfaM6X54fOJRM32JtxZQ__&session_key=2.oAgfHFO_vwpxqZ9cCVFbmg__.3600.1282615200-1128841670&sig=dc47db848029dff2a13cf26136d0f00b&uid=1128841670"' | |
end | |
it "should retrieve the facebook user data" do | |
get "/" | |
end | |
end | |
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
require 'rake' | |
require 'rake/testtask' | |
require 'rake/rdoctask' | |
require 'rspec' | |
require 'rspec/core/rake_task' | |
desc 'Default: run unit tests.' | |
task :default => :test | |
desc 'Test the fbrails plugin.' | |
Rake::TestTask.new(:test) do |t| | |
t.libs << 'lib' | |
t.libs << 'test' | |
t.pattern = 'test/**/*_test.rb' | |
t.verbose = true | |
end | |
desc 'Generate documentation for the fbrails plugin.' | |
Rake::RDocTask.new(:rdoc) do |rdoc| | |
rdoc.rdoc_dir = 'rdoc' | |
rdoc.title = 'Fbrails' | |
rdoc.options << '--line-numbers' << '--inline-source' | |
rdoc.rdoc_files.include('README') | |
rdoc.rdoc_files.include('lib/**/*.rb') | |
end | |
desc 'Default: run specs' | |
task :default => :spec | |
Rspec::Core::RakeTask.new do |t| | |
t.pattern = "spec/**/*_spec.rb" | |
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
require 'rspec' | |
require 'rails/all' | |
require 'rspec/rails' | |
Rails.env = 'test' | |
RSpec.configure do |config| | |
config.mock_with :rspec | |
end | |
require File.join(File.dirname(__FILE__), "../init") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment