Created
October 25, 2010 06:37
-
-
Save daicoden/644509 to your computer and use it in GitHub Desktop.
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
## spec_helper | |
Rspec.configure do |config| | |
config.include Devise::TestHelpers | |
config.before(:authenticate => :admin) do | |
#sign_in User.find_by_email("[email protected]") If you uncomment this it crashes with the nil error | |
end | |
end | |
# Spec | |
before do | |
#sign_in User.find_by_email("[email protected]") If you uncomment this it passes | |
end | |
describe "enumeration_symbols" do | |
it "returns the symbolized underscore of ENUMERATIONS" do | |
Admin::EnumerationsController.enumeration_symbols.should == [:enumeration_type_a, :enumeration_type_b] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment