diff options
author | Philip Arndt <parndt@gmail.com> | 2010-11-22 15:23:25 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-11-22 15:26:53 +1300 |
commit | e5b9af1054bbd259bde0265acf4386cdaab0ca41 (patch) | |
tree | a5a89e83d262aab943c7e3f5d22dc52788de24d8 /spec/models | |
parent | ebb4c59cef0eb4e89700275e23579ca6dd18d619 (diff) | |
parent | 6d94a0ba7b781f93519183c96bbc718465dccdb4 (diff) | |
download | refinerycms-blog-e5b9af1054bbd259bde0265acf4386cdaab0ca41.tar.gz refinerycms-blog-e5b9af1054bbd259bde0265acf4386cdaab0ca41.tar.bz2 refinerycms-blog-e5b9af1054bbd259bde0265acf4386cdaab0ca41.zip |
Merged in Joe's and Steven's forks and updated for compatibility with < 0.9.9. Also, specs now work by including the factories and I have also laid the foundation for cucumber features. Fixed an issue where the javascript file was clashing with the same code we merged to core from this engine relating to submenus. Regenerated gemspec.
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/blog_categories_spec.rb | 11 | ||||
-rw-r--r-- | spec/models/blog_comments_spec.rb | 1 | ||||
-rw-r--r-- | spec/models/blog_posts_spec.rb | 1 |
3 files changed, 8 insertions, 5 deletions
diff --git a/spec/models/blog_categories_spec.rb b/spec/models/blog_categories_spec.rb index d97172c..90d9e22 100644 --- a/spec/models/blog_categories_spec.rb +++ b/spec/models/blog_categories_spec.rb @@ -1,20 +1,21 @@ require 'spec_helper' +Dir[File.expand_path('../../../features/support/factories/*.rb', __FILE__)].each{|factory| require factory} describe BlogCategory do context "wiring up" do - + before(:each) do @category = Factory(:blog_category) end - + it "saves" do @category.should_not be_nil end - + it "has a blog post" do BlogPost.last.categories.should include(@category) end - + end - + end
\ No newline at end of file diff --git a/spec/models/blog_comments_spec.rb b/spec/models/blog_comments_spec.rb index 145626d..7966b46 100644 --- a/spec/models/blog_comments_spec.rb +++ b/spec/models/blog_comments_spec.rb @@ -1,4 +1,5 @@ require 'spec_helper' +Dir[File.expand_path('../../../features/support/factories/*.rb', __FILE__)].each{|factory| require factory} describe BlogComment do diff --git a/spec/models/blog_posts_spec.rb b/spec/models/blog_posts_spec.rb index a334c73..3801de8 100644 --- a/spec/models/blog_posts_spec.rb +++ b/spec/models/blog_posts_spec.rb @@ -1,4 +1,5 @@ require 'spec_helper' +Dir[File.expand_path('../../../features/support/factories/*.rb', __FILE__)].each{|factory| require factory} describe BlogPost do context "wiring up" do |