Sha256: e85ca977d9dbad9687345b6dbd4bacdaa5d481c6f95233adf2995e2cf9bf2452
Contents?: true
Size: 814 Bytes
Versions: 1
Compression:
Stored size: 814 Bytes
Contents
require 'spec_helper' describe GoogleAuthentication do it "should be valid" do GoogleAuthentication.should be_a(Module) end describe "#define_routes?" do it "should return true with existent class" do # User model is defined in the dummy application GoogleAuthentication.stub(:model_name).and_return(:user) GoogleAuthentication.define_routes?.should be_true end it "should return false with non existent class" do GoogleAuthentication.stub(:model_name).and_return(:monster) GoogleAuthentication.define_routes?.should be_false end end describe "#devise_table" do it "should return a plural symbol" do GoogleAuthentication.stub(:model_name).and_return(:monster) GoogleAuthentication.devise_table.should eql(:monsters) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
google_authentication-0.1.0 | spec/google_authentication_spec.rb |