spec/local_spec.rb in jaysus-0.1.3 vs spec/local_spec.rb in jaysus-0.1.4

- old
+ new

@@ -29,11 +29,11 @@ its(:length) { should == 1} its(:first) { should be_a_kind_of(Site::Local) } end context "within a module" do subject { Kalipso::Site::Local.all } - its(:length) { should == 1} + its(:length) { should == 1 } its(:first) { should be_a_kind_of(Kalipso::Site::Local) } end end describe ".find" do @@ -80,11 +80,15 @@ it { should be_persisted } its(:id) { should be_a_kind_of(String) } end describe "#update_attributes" do - subject { site.update_attributes(:title => "Newer Site")} - its(:title) { should == "Newer Site" } + before do + site.save + site.update_attributes(:title => "Newer Site", :path => "nice") + end + subject { File.read("#{Site::Local.store_file_dir}/#{site.id}")} + it { should match(/nice/) } end describe "#destroy" do before { site.save; site.destroy } subject { site.store_file }