Class: Duckface::RSpec::CheckSessionFailureFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/duckface/rspec.rb

Instance Method Summary collapse

Constructor Details

#initialize(check_session) ⇒ CheckSessionFailureFormatter

Returns a new instance of CheckSessionFailureFormatter.



6
7
8
# File 'lib/duckface/rspec.rb', line 6

def initialize(check_session)
  @check_session = check_session
end

Instance Method Details

#messageObject



10
11
12
13
14
# File 'lib/duckface/rspec.rb', line 10

def message
  return ' but it does not implement any interfaces' if @check_session.null?

  ":\n#{formatted_lines}"
end