Sha256: 5443ee702522429cc7272088a934df960cc129a706eb0bee20922f7d4ac95275
Contents?: true
Size: 602 Bytes
Versions: 1
Compression:
Stored size: 602 Bytes
Contents
# encoding: utf-8 require_relative '../spec_helper' describe "Production" do subject { Riksteatern::Production } let(:hamster) { subject.new parsed_fixture('produktion/314') } describe "find" do it "finds a production based on id" do with_data([parsed_fixture('produktion/314')]) do l = subject.find(314) last_params.must_equal productionId: 314 l.name.must_equal 'Kan man älska en hamster?' end end it "returns nil if passed an empty array" do with_data([]) do subject.find(123).must_be_nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riksteatern-0.0.1 | spec/riksteatern/production_spec.rb |