Sha256: dffb779f77ebc36ca8c8c23eae4d45b59915c5e59fbd7750cbff73763d1ec431

Contents?: true

Size: 445 Bytes

Versions: 6

Compression:

Stored size: 445 Bytes

Contents

ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'

class ActiveSupport::TestCase
  self.use_transactional_fixtures = true
  self.use_instantiated_fixtures  = false
  fixtures :all

  # Add more helper methods to be used by all tests here...
  
  def create_post(options = {})
    Post.create(options)
  end
  
  def create_published_post
    PublishedPost.create
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
aguids-publishable-0.1.1 test/rails_root/test/test_helper.rb
aguids-publishable-0.1.2 test/rails_root/test/test_helper.rb
aguids-publishable-0.1.3 test/rails_root/test/test_helper.rb
aguids-publishable-0.1.4 test/rails_root/test/test_helper.rb
aguids-publishable-0.1.5 test/rails_root/test/test_helper.rb
aguids-publishable-0.1.6 test/rails_root/test/test_helper.rb