Skip to content

active_scaffold generate creates broken _spec file #99

Description

@mcr

The generated rspec file needs to call the submitted params "record" rather than the name of the model, otherwise, one gets
errors inside update_attributes, only it's really hard to see that, because rspec catches that exception, and forgets to print
the exception location.
I think that this fix involves rspec patches to make it more AS aware.

   it "creates a new Connection" do
     expect {
       -post :create, :connection => valid_attributes
       +post :create, :record => valid_attributes
     }.to change(Connection, :count).by(1)
   end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions