Sha256: 26b4e1889b617e0d12200c48155c679a60db7f1e5633e32dae9ae3920c0af39c
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
module RacePartnerRegistrations describe Registration do let :name do "Sean Devine" end let :location do "Suffield, CT" end context "when initialized with the name and location" do subject do described_class.new name, location end it "sets and gets the name" do expect(subject.name).to eq name end it "sets and get the location" do expect(subject.location).to eq location end end context "when initialized without a name and location" do it "raises an ArgumentError" do expect{described_class.new}.to raise_error ArgumentError end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
race_partner_registrations-0.0.1 | spec/lib/race_partner_registrations/registration_spec.rb |