Permalink
Browse files

Removed BrowserCMS specific factory definitions

  • Loading branch information...
1 parent 175f18f commit 332bc9bd6d829fbbe505cf81da48838cef86567f @alce alce committed Jul 11, 2010
Showing with 8 additions and 33 deletions.
  1. +0 −31 test/factories.rb
  2. +5 −0 test/functional/blog_controller_test.rb
  3. +3 −2 test/test_helper.rb
View
@@ -1,34 +1,3 @@
-Factory.define :category_type do |m|
- m.name "Blog Post"
-end
-
-Factory.define :group do |m|
- m.sequence(:name) {|n| "TestGroup#{n}" }
- m.association :group_type
-end
-
-Factory.define :group_type do |m|
- m.sequence(:name) {|n| "TestGroupType#{n}" }
-end
-
-Factory.define :permission do |m|
- m.name "edit_content"
-end
-
-Factory.define :user do |m|
- m.first_name "Test"
- m.last_name "User"
- m.sequence(:login) {|n| "test_#{n}" }
- m.email {|a| "#{a.login}@example.com" }
- m.password "password"
- m.password_confirmation {|a| a.password }
-end
-
-Factory.define :section do |m|
- m.name "A Section"
- m.path "/a-section"
-end
-
Factory.define :blog do |m|
m.sequence(:name) {|n| "TestBlog#{n}"}
m.moderate_comments true
@@ -37,6 +37,11 @@ def setup
assert_select ".blog_post", 3
end
+ # test "tagging" do
+ # get :show, :path => ['myblog'], :tag => 'foo'
+ # assert_response :success
+ # assert_equal 6, PageRoute.count
+ # end
# test "list of blog posts by tag" do
# get :show, :path => ['myblog'], :tag => 'foo'
# puts @response.body
View
@@ -1,11 +1,12 @@
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'
-require 'factory_girl'
require 'mocha'
-require 'test_logging'
+require 'factory_girl'
require 'bcms_support'
+require 'bcms_support/factories'
require 'blog_helper'
+require 'test_logging'
class ActiveSupport::TestCase
include BcmsSupport::Test

0 comments on commit 332bc9b

Please sign in to comment.