aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
authorAndrew Hooker <GeekOnCoffee@gmail.com>2012-05-19 20:00:16 -0500
committerAndrew Hooker <GeekOnCoffee@gmail.com>2012-05-19 20:00:16 -0500
commit86fa2d2f5d0c2bfb9900bb795bfafe78d09c897d (patch)
tree89aa1c39fcdc2aa5e9d2255d418aa42021abab34 /spec/models
parent6fa5bbdf33b681f7c9595a327a39cc99de7bf638 (diff)
downloadrefinerycms-blog-86fa2d2f5d0c2bfb9900bb795bfafe78d09c897d.tar.gz
refinerycms-blog-86fa2d2f5d0c2bfb9900bb795bfafe78d09c897d.tar.bz2
refinerycms-blog-86fa2d2f5d0c2bfb9900bb795bfafe78d09c897d.zip
Renaming Method to better describe use, Including Deprecation Warning on Old Method
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/refinery/blog/post_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/refinery/blog/post_spec.rb b/spec/models/refinery/blog/post_spec.rb
index 2f34eb8..7b0c9be 100644
--- a/spec/models/refinery/blog/post_spec.rb
+++ b/spec/models/refinery/blog/post_spec.rb
@@ -53,7 +53,7 @@ module Refinery
end
end
- describe "by_archive" do
+ describe "by_month" do
before do
@post1 = FactoryGirl.create(:blog_post, :published_at => Date.new(2011, 3, 11))
@post2 = FactoryGirl.create(:blog_post, :published_at => Date.new(2011, 3, 12))
@@ -65,8 +65,8 @@ module Refinery
it "returns all posts from specified month" do
#check for this month
date = "03/2011"
- described_class.by_archive(Time.parse(date)).count.should be == 2
- described_class.by_archive(Time.parse(date)).should == [@post2, @post1]
+ described_class.by_month(Time.parse(date)).count.should be == 2
+ described_class.by_month(Time.parse(date)).should == [@post2, @post1]
end
end