Alexandr Smirnov
Alexandr Smirnov
Same problem with workspace previews on right side of overview
what about ``` expect { fixture.definition = "sometype #{fixture.name} blah blah" } .to ... ``` ???
@matthewrudy i tried to memoize #fetch, delegated to some hash, and got unexpected KeyError in specs ``` expect(subject.fetch(Foo::Bar) { {} }).to eq({}) # => KeyError ```
> By default memoist will treat this like any method with arguments, and try and memoize it based on the value of the block object As far as i see,...
@matthewrudy http://ruby-doc.org/core-2.2.0/Hash.html#method-i-fetch, lol
also, there is no way to cache by block value (if it is not nil), so semantics should be as i've written in top post: > There should be either...
@matthewrudy i am tried to achieve a stub i can rewite to something like ``` def fetch(*args, &block) IceNine.deep_freeze(global_config.fetch(*args, &block).with_indifferent_access) end memoize :fetch ``` And also this is a live...
@matthewrudy it will break back-comp and cause problems with parameters delegation. e.g. ``` def bar(x) x + 1 end def foo(*args, &block) bar(*args, &block).to_s end memoize :foo ```
fails in travis same as at master, porbably gemspec misconfiguration
There is no way to check this outside runtime