Sha256: 6c45c50e1cbd3a92ee772d5454a4b0d85523e5abff566fdf6d96e6815ecb9423

Contents?: true

Size: 637 Bytes

Versions: 5

Compression:

Stored size: 637 Bytes

Contents

require 'spec_helper'

# Generators are not automatically loaded by Rails
require 'generators/seymour/feed/feed_generator'

describe Seymour::FeedGenerator do
  # Tell the generator where to put its output (what it thinks of as Rails.root)
  destination File.expand_path("../../../../../tmp", __FILE__)

  before { prepare_destination }

  describe 'no arguments' do
    before { run_generator %w(dashboard)  }

    describe 'app/models/feeds/dashboard_feed.rb' do
      subject { file('app/models/feeds/dashboard_feed.rb') }
      it { should exist }
      it { should contain "class DashboardFeed < Seymour::Feed" }
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
seymour-0.0.9 spec/generators/seymour/feed/feed_generator_spec.rb
seymour-0.0.8 spec/generators/seymour/feed/feed_generator_spec.rb
seymour-0.0.7 spec/generators/seymour/feed/feed_generator_spec.rb
seymour-0.0.6 spec/generators/seymour/feed/feed_generator_spec.rb
seymour-0.0.5 spec/generators/seymour/feed/feed_generator_spec.rb