Skip to content

Commit

Permalink
Specs to cover changes to asset name attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
benschwarz committed Mar 29, 2010
1 parent 0d00364 commit 2570fcf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/bonsai/page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
end

it "should have the correct name" do
@page.assets.first[:name].should == "001.jpg"
@page.assets.first[:name].should == "001"
end

it "should have the correct path" do
Expand All @@ -66,6 +66,10 @@
it "should have the correct disk_path" do
@page.assets.first[:disk_path].should == "/Users/ben/Documents/Projects/bonsai/spec/support/content/1.about-us/history/001.jpg"
end

it "should titleize the name attribute and remove the file extension" do
@page.assets[2][:name].should == "A File Asset"
end
end

it "should be equal" do
Expand Down

0 comments on commit 2570fcf

Please sign in to comment.