Sha256: 7b16ac226217066ec75f492095c7764b575e84ab1b44b8766971897e2a9b3be1
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
module RubyQuiz2 describe PeopleList do let :list do File.read(File.expand_path("../../../fixtures/people_lists/feasible.txt", __FILE__)) end context "when initialized with the list" do subject do described_class.new list end it "has the right number of people" do expect(subject.length).to eq list.split("\n").size end end it "has a people array" do expect(subject.people).to be_empty end it "implements enumerable" do expect(subject).to respond_to :each end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_quiz_2-1.0.0 | spec/lib/ruby_quiz_2/people_list_spec.rb |