Theme enumeration working

This commit is contained in:
Christian Mehlmauer
2012-09-15 23:57:49 +02:00
parent 0eaef9cd69
commit 08506b02c9
3 changed files with 74 additions and 13 deletions

View File

@@ -31,7 +31,7 @@ describe WpTheme do
describe "#to_s" do
it "should return the theme name and the version if there is one" do
wp_theme = WpTheme.new("bueno", :version => "1.2.3")
wp_theme = WpTheme.new(:name => "bueno", :version => "1.2.3")
wp_theme.to_s.should === "bueno v1.2.3"
end
@@ -41,7 +41,7 @@ describe WpTheme do
stub_request(:get, style_url).to_return(:status => 200, :body => "")
wp_theme = WpTheme.new("hello-world", :style_url => style_url)
wp_theme = WpTheme.new(:name => "hello-world", :style_url => style_url)
wp_theme.to_s.should === "hello-world"
end