spec/lib/jasmine/headless/report_spec.rb in jasmine-headless-webkit-0.8.4 vs spec/lib/jasmine/headless/report_spec.rb in jasmine-headless-webkit-0.9.0.rc1

- old
+ new

@@ -1,9 +1,12 @@ require 'spec_helper' describe Jasmine::Headless::Report do include FakeFS::SpecHelpers + + let(:report) { described_class.new(file) } + let(:file) { 'file' } let(:file) { 'report.txt' } describe '.load' do let(:report) { described_class.load(file) } @@ -72,8 +75,21 @@ it 'should read the report file' do report[0].should == Jasmine::Headless::ReportMessage::Console.new("test\ntest2") end end + end + + describe '#seed' do + subject { report.seed } + + let(:seed) { stub(:seed => seed_number) } + let(:seed_number) { 1 } + + before do + report.stubs(:report).returns([ seed ]) + end + + it { should == seed_number } end end