Sha256: fcee3b39e2088c3c54394313773438ee852b7bd96f7881e815c15581951acc88
Contents?: true
Size: 533 Bytes
Versions: 2
Compression:
Stored size: 533 Bytes
Contents
require 'spec_helper' describe Oauth2Provider::Scope do before { @scope = FactoryGirl.create(:scope, values: ALL_SCOPE) } subject { @scope } it { should validate_presence_of(:name) } it { should validate_presence_of(:name) } it { VALID_URIS.each{|uri| should allow_value(uri).for(:uri) } } it { INVALID_URIS.each{|uri| should_not allow_value(uri).for(:uri) } } it { should_not allow_mass_assignment_of(:values) } it { should_not allow_mass_assignment_of(:uri) } its(:values) { should be_a_kind_of Array } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oauth2_provider_engine-0.0.2 | test/dummy/spec/models/scope_spec.rb |
oauth2_provider_engine-0.0.1 | test/dummy/spec/models/scope_spec.rb |