Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Victor Castell
committed
Jul 17, 2011
1 parent
d00b4dc
commit c0082ea
Showing
4 changed files
with
46 additions
and
13 deletions.
There are no files selected for viewing
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 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 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,13 +1,21 @@ | |||
ENV["RAILS_ENV"] = "test" | ENV["RAILS_ENV"] = "test" | ||
|
|
||
gem 'minitest' | |||
require 'minitest/autorun' | |||
require 'minitest/unit' | require 'minitest/unit' | ||
require 'minitest/spec' | require 'minitest/spec' | ||
require 'minitest/pride' | |||
require 'rack/test' | require 'rack/test' | ||
|
|
||
$LOAD_PATH.unshift(File.dirname(__FILE__)) | $LOAD_PATH.unshift(File.dirname(__FILE__)) | ||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | ||
require 'rails' | require 'rails' | ||
require 'eukaliptus' | require 'eukaliptus' | ||
require 'eukaliptus/view_helpers/facebook_helpers' | |||
|
|||
module ::Facebook | |||
APP_ID = '123456' | |||
end | |||
|
|
||
MiniTest::Unit.autorun | MiniTest::Unit.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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,10 +1,22 @@ | |||
require 'test_helper' | require 'test_helper' | ||
|
|
||
describe "Eukaliptus::FacebookHelpersTest" do | |||
describe "when asked about a helper" do | |||
it "must respond positively" do | |||
skip "Possitive" | |||
end | |||
end | |||
|
|
||
class FacebookHelpersTest < MiniTest::Spec | |||
|
|||
include Eukaliptus::FacebookHelpers | |||
|
|||
before do | |||
require 'erubis' | |||
require 'active_support/core_ext/string/output_safety' | |||
end | |||
|
|||
it "should_raise_exception_with_fb_login" do | |||
assert_raises RuntimeError do | |||
fb_login | |||
end | |||
end | |||
|
|||
it "should_return_fb_init_js" do | |||
assert_instance_of ActiveSupport::SafeBuffer, fb_init | |||
end | |||
end | end |