require 'spec_helper'
require "generator_spec/test_case"
require File.expand_path('../../lib/generators/sharp_social/sharp_social_generator', __FILE__)

describe SharpSocialGenerator do
  include GeneratorSpec::TestCase
  #destination File.expand_path("../dummy/app/models/", __FILE__)
  destination File.expand_path("../tmp", __FILE__)
  #arguments %w(something)
  arguments %w(sharp_social --skip-active-record)
  before(:all) do
    prepare_destination
    run_generator 
  end

  it "creates a actor model" do
    assert_file "../tmp/app/models/follow.rb", /Follow/
  end
end