forked from fester/have_filter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/ngty/have_filter into ngty/…
…master
- Loading branch information
Showing
9 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Sat Aug 23 12:26:14 SGT 2008 (TAG: fix_compatibility_issues_with_rails_2_1_0) | ||
|
||
* Fixed compatibiity issues with rails-2.1.0 | ||
|
||
* Revised directory structure to conform to the one recommended by rspec-plugin-generator | ||
(see http://github.com/pat-maddox/rspec-plugin-generator) | ||
|
||
# __END__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require 'rake' | ||
require 'spec/rake/spectask' | ||
|
||
desc 'Default: run specs.' | ||
task :default => :spec | ||
|
||
desc 'Run the specs' | ||
Spec::Rake::SpecTask.new(:spec) do |t| | ||
t.spec_opts = ['--colour --format progress --loadby mtime --reverse'] | ||
t.spec_files = FileList['spec/**/*_spec.rb'] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
require 'spec/rails/matchers/have_filter' | ||
require 'have_filter' | ||
ActionController::Filters::Filter.send( :include, Spec::Rails::Filter ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Install hook code here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib') | ||
begin | ||
require File.dirname(__FILE__) + '/../../../../spec/spec_helper' | ||
rescue LoadError | ||
puts "You need to install rspec in your base app" | ||
exit | ||
end | ||
|
||
plugin_spec_dir = File.dirname(__FILE__) | ||
ActiveRecord::Base.logger = Logger.new(plugin_spec_dir + "/debug.log") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# desc "Explaining what the task does" | ||
# task :have_filter do | ||
# # Task goes here | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Uninstall hook code here |