Sha256: 0ab1f48f3e146dd87fb5cfb710aa8cf9b924c92163f605abc92edac025bb4885
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
require File.dirname(__FILE__) + '/../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-0.1.0 | spec/zelda/aflevering_spec.rb |