Sha256: cb1885bd41c5fd7e1d14ffc0b6dced5047bf01efe883fced59e594abc9112267
Contents?: true
Size: 671 Bytes
Versions: 2
Compression:
Stored size: 671 Bytes
Contents
require 'spec_helper' require 'action_controller' require 'generator_spec/test_case' require 'generators/make_voteable/make_voteable_generator' describe MakeVoteableGenerator do include GeneratorSpec::TestCase destination File.expand_path("/tmp", __FILE__) tests MakeVoteableGenerator before do prepare_destination run_generator end specify do destination_root.should have_structure { directory "db" do directory "migrate" do migration "create_make_voteable_tables" do contains "class CreateMakeVoteableTables" contains "create_table :votings" end end end } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
make_voteable-0.1.1 | spec/generators/make_voteable_generator_spec.rb |
make_voteable-0.1.0 | spec/generators/make_voteable_generator_spec.rb |