Sha256: 59bc2ea1e025f1a0f83784135a02cdab7422c3882ab3a39416d134827bd972fd
Contents?: true
Size: 791 Bytes
Versions: 2
Compression:
Stored size: 791 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' context "Given the first Blog fixture" do fixtures :blogs, :contents, :sidebars setup { @blog = blogs(:default) } specify ":blog_name == 'test blog'" do @blog.blog_name.should == 'test blog' end specify "values boolify like Perl" do {"0 but true" => true, "" => false, "false" => false, 1 => true, 0 => false, nil => false, 'f' => false }.each do |value, expected| @blog.sp_global = value @blog.sp_global.should == expected end end specify "blog.url_for does the right thing" do @blog.url_for(:controller => 'articles', :action => 'read', :id => 1).should == 'http://myblog.net/articles/read/1' end specify "blog has one sidebar" do @blog.should_have(1).sidebars end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typo-4.1.1 | spec/models/blog_spec.rb |
typo-4.1 | spec/models/blog_spec.rb |