Sha256: 339dccc5af174449a036faa8f3b2fd42d8eb7cbc89dbae938fc76481700abd5a
Contents?: true
Size: 738 Bytes
Versions: 13
Compression:
Stored size: 738 Bytes
Contents
require 'spec_helper' module SamlIdp describe ServiceProvider do subject { described_class.new attributes } let(:attributes) { {} } it { should respond_to :fingerprint } it { should respond_to :metadata_url } it { should_not be_valid } describe "with attributes" do let(:attributes) { { fingerprint: fingerprint, metadata_url: metadata_url } } let(:fingerprint) { Default::FINGERPRINT } let(:metadata_url) { "http://localhost:3000/metadata" } it "has a valid fingerprint" do subject.fingerprint.should == fingerprint end it "has a valid metadata_url" do subject.metadata_url.should == metadata_url end it { should be_valid } end end end
Version data entries
13 entries across 13 versions & 2 rubygems