Sha256: ccd7feff162f0aafd3e01232f7db94b270a0bf3420d746ba72678b36d74346d2
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
require 'spec_helper' describe Zelda::Aflevering do before do @model = Zelda::Aflevering.new(:foo => "bar") end it_should_behave_like 'a zelda base model' it "should accept attributes when being initialized" do Zelda::Aflevering.new(:foo => "bar").should be_a(Zelda::Aflevering) end it "should find an aflevering in Zelda correctly" do afl_attrs = { "aflevering" => {"afleveringid" => "POW_00243538", "name" => "3 op reis"} } Zelda::Request.stub!(:get).with("afleveringen/1").and_return afl_attrs afl = Zelda::Aflevering.find(1) afl.should be_a(Zelda::Aflevering) afl.afleveringid.should == 'POW_00243538' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zelda-1.0.0 | spec/zelda/aflevering_spec.rb |