Sha256: 9de7fd0251228313692e88fcd01dd35953053cb50bfb98b2deed20f60bdc4c29
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
# Rails app RSpec 2 matchers RSpec 2 matchers to spec the structure of your Rails 3 app ## Install <code>gem install rails3-app-spec</code> ## Usage See specs for details on the API. Usage example (teaser): <pre> Rails.root.should have_controller :account do |content| content.should have_method :index end Rails.root.should have_controller_file :account do |controller_file| controller_file.should have_controller_class :account do |klass| klass.should have_method :index end end end </pre> ## Known issues * View generation fails when action arg supplied :( To be fixed ASAP - rails3_assist/artifact/view.rb:7:in `[]' can't convert Symbol into Integer ## Note on Patches/Pull Requests * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) * Send me a pull request. Bonus points for topic branches. ## Copyright Copyright (c) 2010 Kristian Mandrup. See LICENSE for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-app-spec-0.1.0 | README.markdown |