Permalink
Browse files

specs use blog config struct

  • Loading branch information...
1 parent 01c1ddf commit b32ccd2cbd0c9c7569b7e2e35dc00a1314d371ce @adamwiggins committed Nov 4, 2008
Showing with 4 additions and 4 deletions.
  1. +1 −1 spec/base.rb
  2. +3 −3 spec/post_spec.rb
View
@@ -8,7 +8,7 @@
require 'post'
require 'ostruct'
-Config = OpenStruct.new(
+Blog = OpenStruct.new(
:title => 'My blog',
:author => 'Anonymous Coward',
:url_base => 'http://blog.example.com/'
View
@@ -11,11 +11,11 @@
@post.url.should == '/past/2008/10/22/my_post/'
end
- it "has a full url including the Config.url_base" do
+ it "has a full url including the Blog.url_base" do
@post.created_at = '2008-10-22'
@post.slug = "my_post"
- Config.stub!(:url_base).and_return('http://blog.example.com/')
- @post.url.should == 'http://blog.example.com/past/2008/10/22/my_post/'
+ Blog.stub!(:url_base).and_return('http://blog.example.com/')
+ @post.full_url.should == 'http://blog.example.com/past/2008/10/22/my_post/'
end
it "produces html from the markdown body" do

0 comments on commit b32ccd2

Please sign in to comment.