futo-spec 0.4.99.1 → 0.4.99.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '014822bd29f154dddac018ec8d3ec88e5ab3f41946ae5dd18bd5a1913adcde02'
4
- data.tar.gz: 9845a20cdada8b9d5d438ff8310c1f84ea1bb6527803cbf080101812f3e888cc
3
+ metadata.gz: b947d052eb4556800126aecfb5e4c8c43b654f85510091980205ff28fc01a1b4
4
+ data.tar.gz: 0ea486f03061cbfc41e49428c979a637cbcdacbe62e4704583793a2258557c37
5
5
  SHA512:
6
- metadata.gz: c0dd84772c65f807ea39411c2c88572ba01c601b342aa074d9d7498a3aa118a7aa3c3d6c0baf52c5d9437b7f2f0d3c698acf1d22dd37fb17a5813170720144e7
7
- data.tar.gz: 8e42690d846e3278b745c31f3da3364f42492d98175906b1ce6d90168833a2ac73bea023b508844cecf11affa9b0c2770b83dc7d09cdb7feb004a023087a327c
6
+ metadata.gz: b21422cb0e2d2ed8d118aa1718cfe3b66c0d5e4a2c026342c669fa684ffabc5f762cb47a6dd29e076d468d41deaab3015f1a200b847a71cafbd47d656c704253
7
+ data.tar.gz: 8155f77442bad2a06ca8c71a9c220169a528b01094e761a0bf3c98136dc10a71ba7683b770c6d3ea322ed7e8c6aed3853b8ed4feeb3742e92009e9804ab5f87c
@@ -1,6 +1,7 @@
1
1
  class BreakpointContext
2
2
  def initialize(bind)
3
3
  @local_vars = bind.local_variable_get(:local_vars)
4
+ @bind = bind
4
5
  end
5
6
  def method_missing(symbol, *args)
6
7
  if @local_vars.include? symbol.to_s
data/lib/futo-spec.rb CHANGED
@@ -511,7 +511,10 @@ class FutoSpec
511
511
  dpa "result: #{result}"
512
512
  if cmd.include? '='
513
513
  new_var = cmd.split('=').first.rstrip
514
- local_vars.store(new_var, result)
514
+ unless new_var.include? '@' or new_var.include? '$'
515
+ # don't store @ vars as a local var
516
+ local_vars.store(new_var, result)
517
+ end
515
518
  end
516
519
  rescue RSpec::Expectations::ExpectationNotMetError => e
517
520
  pa e, COLORS[:error], :bright
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: futo-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.99.1
4
+ version: 0.4.99.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Felipe Wolfe