README.md in generator_spec-0.9.3 vs README.md in generator_spec-0.9.4
- old
+ new
@@ -17,11 +17,11 @@
```ruby
# spec/lib/generators/test/test_generator_spec.rb
require "generator_spec"
-describe TestGenerator do
+describe TestGenerator, type: :generator do
destination File.expand_path("../../tmp", __FILE__)
arguments %w(something)
before(:all) do
prepare_destination
@@ -44,10 +44,10 @@
prepare_destination
run_generator
end
specify do
- destination_root.should have_structure {
+ expect(destination_root).to have_structure {
no_file "test.rb"
directory "config" do
directory "initializers" do
file "test.rb" do
contains "# Initializer"