Skip to content

Commit

Permalink
Remove the Scraper dependency from the Api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDintel committed Feb 12, 2014
1 parent 0e5012e commit bb6e61a
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions spec/lib/ovchipkaart/api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,8 @@
specify { expect(subject.products).to eql Factory.products }
specify { expect(subject.unclassified).to eql Factory.unclassified }

context 'with web_driver', :web_driver do
@scraper = Ovchipkaart::Scraper.scrape

before do
Ovchipkaart::Scraper.stub(:scrape) { double(@scraper, balance: "€ 30,51 (19-12-2013 20:57)") }
end

specify { expect(subject.balance).to eql '€ 30,51' }
specify { expect(subject.exact_balance).to eq 30.51 }
specify { expect(subject.last_updated).to eql '(19-12-2013 20:57)' }
end
specify { expect(subject.balance).to eql '€ 30,51' }
specify { expect(subject.exact_balance).to eq 30.51 }
specify { expect(subject.last_updated).to eql '(19-12-2013 20:57)' }
end
end

0 comments on commit bb6e61a

Please sign in to comment.