Registry / testing / generator-spec

generator-spec

JSON →
library0.10.0rbrubygemsunverified

Test Rails generators with RSpec, providing helpers and matchers for generator testing.

gem install generator_spec
INSTALL
IMPORT
SIG · GENERATOR-SPEC
G
generator-spec
testingrubyv0.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GeneratorSpec
require 'generator_spec'

Testing a Rails generator with GeneratorSpec

require 'generator_spec' describe MyGenerator do include GeneratorSpec::TestCase destination File.expand_path('../tmp', __FILE__) before { prepare_destination } it 'generates files' do run_generator %w(some_arg) assert_file 'app/models/some_model.rb' end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.10.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
generator-spec — gem install generator-spec · libregistry