spec/generators/install_generator_spec.rb in cadenero-0.0.2.a vs spec/generators/install_generator_spec.rb in cadenero-0.0.2.a1
- old
+ new
@@ -14,33 +14,10 @@
def migrations
Dir["#{Rails.root}/db/migrate/*.rb"].sort
end
- it "copies over the migrations" do
- migrations.should be_empty
- capture(:stdout) do
- described_class.start(["--user-class=User", "--no-migrate", "--current-user-helper=current_user"], :destination => Rails.root)
- end
-
- # Ensure cadenero migrations have been copied over
- migrations.should_not be_empty
-
- # Ensure initializer has been created
- #cadenero_initializer = File.readlines("#{Rails.root}/config/initializers/cadenero.rb")
- #cadenero_initializer[0].strip.should == %q{Cadenero.user_class = "User"}
-
- # Ensure cadenero_user is added to ApplicationController
- application_controller = File.read("#{Rails.root}/app/controllers/application_controller.rb")
- expected_cadenero_user_method = %Q{
- def cadenero_user
- current_user
- end
- helper_method :cadenero_user
-
-}
- application_controller.should include(expected_cadenero_user_method)
- end
+
it "seeds the database" do
Cadenero::V1::Account.count.should == 0
Cadenero::User.count.should == 0
\ No newline at end of file