public
Description: Your favorite URL-shortening service in all of Ruby land
Homepage: http://rubyurl.com
Clone URL: git://github.com/robbyrussell/rubyurl.git
commit  20157bf6ac66a72928a455a935a6e8e56bf6110e
tree    4cee3eb37e5b0f85dd6a5ed6e435b9349bc7beda
parent  3965c375e8e395640e8a382096821f83355e4961
rubyurl / spec / spec_helper.rb
100644 33 lines (29 sloc) 1.053 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
# from the project root directory.
ENV["RAILS_ENV"] ||= "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'spec/rails'
 
Spec::Runner.configure do |config|
  config.use_transactional_fixtures = true
  config.use_instantiated_fixtures = false
  config.fixture_path = RAILS_ROOT + '/spec/fixtures'
  config.before(:each, :behaviour_type => :controller) do
    raise_controller_errors
  end
 
  # You can declare fixtures for each behaviour like this:
  # describe "...." do
  # fixtures :table_a, :table_b
  #
  # Alternatively, if you prefer to declare them only once, you can
  # do so here, like so ...
  #
  # config.global_fixtures = :table_a, :table_b
  #
  # If you declare global fixtures, be aware that they will be declared
  # for all of your examples, even those that don't use them.
end
 
 
module LinkSpecHelper
  def valid_attributes
    {:website_url => 'http://www.google.com/', :ip_address => '192.168.1.1'}
  end
end