Simple RSpec extension for generating validation specs
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.document
.gitignore
LICENSE
README.rdoc
Rakefile

README.rdoc

maker

Simple extension for RSpec to simplify writing specs for validations

Usage

# spec_helper.rb
Spec::Runner.configure do |config|
  # ...
  config.extend Maker
  # ...
# any spec
describe User do
  shortcuts_for :user
  # Generate tests for validations on given field
  requires_presence_of :username, :password, :email
end