spec/models/card/create_spec.rb in wagn-1.12.13 vs spec/models/card/create_spec.rb in wagn-1.13.0.pre

- old
+ new

@@ -1,7 +1,6 @@ # -*- encoding : utf-8 -*- -require 'wagn/spec_helper' # FIXME this shouldn't be here describe Card::Set::Type::Cardtype, ".create with :codename" do it "should work" do Card.create!(:name=>"Foo Type", :codename=>"foo", :type=>'Cardtype').type_code.should==:cardtype @@ -11,17 +10,17 @@ describe Card, "created by Card.new " do before(:each) do - Account.as_bot do + Card::Auth.as_bot do @c = Card.new :name=>"New Card", :content=>"Great Content" end end it "should not override explicit content with default content" do - Account.as_bot do + Card::Auth.as_bot do Card.create! :name => "blue+*right+*default", :content => "joe", :type=>"Pointer" c = Card.new :name => "Lady+blue", :content => "[[Jimmy]]" c.content.should == "[[Jimmy]]" end end @@ -29,10 +28,10 @@ describe Card, "created by Card.create with valid attributes" do before(:each) do - Account.as_bot do + Card::Auth.as_bot do @b = Card.create :name=>"New Card", :content=>"Great Content" @c = Card.find(@b.id) end end