Sha256: c5a308c47e8fbb70d6fb6d7799dca199e13cd6c889eaaf64fc0ca0e6936bb6ab

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

require 'spec_helper'
describe :afterparty do
  within_source_root do
    FileUtils.mkdir_p "config"
    FileUtils.touch "config/routes.rb"
  end
  it "works" do
    subject.should generate(:copy_file, "jobs_migration.rb")
    subject.should generate("config/initializers/afterparty.rb") do |content|
      content.should include("Afterparty::Queue.new")
      content.should include("queue.config_login do |username, password|")
    end
    subject.should generate(:route, "mount Afterparty::Engine, at: \"afterparty\", as: \"afterparty_engine\"")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
afterparty-0.2.0 spec/generators/afterparty_generator_spec.rb