Skip to content

silence_stream method was removed from Rails 5. #229

Closed
@kenchan0130

Description

@kenchan0130

Hi,

When I run test this project, it failed.
Because it was installed Rails 5 removed the silence_stream method like this:

NoMethodError:
        undefined method `silence_stream' for #<RSpec::ExampleGroups::StatesmanAdaptersActiveRecordQueries::InState::GivenTheInitialState:0x007fe3cc10d148>
      # ./spec/spec_helper.rb:76:in `prepare_model_table'
      # ./spec/statesman/adapters/active_record_queries_spec.rb:5:in `block (2 levels) in <top (required)>'

  68) Statesman::Adapters::ActiveRecordQueries.in_state merging two queries
      Failure/Error:
        silence_stream(STDOUT) do
          CreateMyActiveRecordModelMigration.migrate(:up)
        end

I think about removing silence_stream method (and block).
How you do you feel about it?


References

Discussion: rails/rails#13139
Deprecation (4.2.0): rails/rails#13392
Removal (5.0.0): rails/rails@481e49c

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