adding Gemfile, to get specs running just bundle and rake - closes #163
This commit is contained in:
@@ -379,7 +379,7 @@ describe CanCan::Ability do
|
||||
end
|
||||
|
||||
it "should have variables for action and subject" do
|
||||
I18n.backend.store_translations :en, :unauthorized => {:manage => {:all => "{{action}} {{subject}}"}} # old syntax for now in case testing with old I18n
|
||||
I18n.backend.store_translations :en, :unauthorized => {:manage => {:all => "%{action} %{subject}"}} # old syntax for now in case testing with old I18n
|
||||
@ability.unauthorized_message(:update, Array).should == "update array"
|
||||
@ability.unauthorized_message(:edit, 1..3).should == "edit range"
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Spec::Matchers.define :orderlessly_match do |original_string|
|
||||
RSpec::Matchers.define :orderlessly_match do |original_string|
|
||||
match do |given_string|
|
||||
original_string.split('').sort == given_string.split('').sort
|
||||
end
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
require 'rubygems'
|
||||
require 'spec'
|
||||
require 'active_support'
|
||||
require 'active_record'
|
||||
require 'action_controller'
|
||||
require 'action_view'
|
||||
require 'bundler'
|
||||
Bundler.require(:default, :test)
|
||||
require 'active_support/all'
|
||||
require 'matchers'
|
||||
require 'cancan'
|
||||
require 'cancan/matchers'
|
||||
|
||||
Spec::Runner.configure do |config|
|
||||
RSpec.configure do |config|
|
||||
config.mock_with :rr
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user