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
class Spec::Rails::Example::AcceptanceExampleGroup | |
raise "Please, try to remove this. In this version of Rails it might be not necessary" unless Rails.version == "2.3.3" | |
def method_missing(sym, *args, &block) | |
return Spec::Matchers::Be.new(sym, *args) if sym.to_s =~ /^be_/ | |
return Spec::Matchers::Has.new(sym, *args) if sym.to_s =~ /^have_/ | |
super | |
end | |
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
# Delete unnecessary files | |
run "rm README" | |
run "rm public/index.html" | |
run "rm public/favicon.ico" | |
run "rm public/robots.txt" | |
run "rm -f public/javascripts/*" | |
# Set up git repository and .gitignore files | |
git :init | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" |