Sha256: a4a4f6d8a35f9ace3aacc5eb294de286b1cc9e50ba9c514bd5d2340e06e0ca88
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
require "spec_helper" module ShipCompliant describe ComplianceRule do context "compliance_description" do it "gets the description" do expect(subject.compliance_description).to eq('Howdy Stranger') end end context "rule_description" do it "gets the rule" do expect(subject.rule_description).to eq('Must say hi to people you do not know.') end end context "compliant?" do it "check this rule passed" do expect(subject.compliant?).to be_truthy end end context "license_relationship" do it "gets the relationship" do expect(subject.license_relationship).to eq('StrangerToFriend') end end context "rule_type" do it "gets the rule type" do expect(subject.rule_type).to eq('BeCourteous') end end subject do ComplianceRule.new( compliance_description: 'Howdy Stranger', is_compliant: true, license_relationship: 'StrangerToFriend', rule_description: 'Must say hi to people you do not know.', rule_type: 'BeCourteous' ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ship_compliant-0.2.1 | spec/lib/ship_compliant/compliance_rule_spec.rb |