Sha256: d24446ecbcead3cf44d65cb74f8589353a399b38cbf6abc5af280cbd5270a549
Contents?: true
Size: 620 Bytes
Versions: 23
Compression:
Stored size: 620 Bytes
Contents
require 'spec_helper' require 'generators/rspec/presenter/presenter_generator' describe Rspec::Generators::PresenterGenerator, :type => :generator do it "should run all tasks in the generator" do gen = generator %w(foo_bar) expect(gen).to receive(:create_presenter_spec) capture(:stdout) { gen.invoke_all } end describe "the generated files" do describe "the spec" do describe "with defaults" do before do run_generator %w(foo_bar) end subject { file('spec/presenters/foo_bar_presenter_spec.rb') } it { should exist } end end end end
Version data entries
23 entries across 23 versions & 1 rubygems