shoes / furoshiki

Distribute Ruby GUI apps easily.
https://github.com/shoes/furoshiki
Do What The F*ck You Want To Public License
36 stars 6 forks source link

Deprecations warning from RSpec #2

Closed PragTob closed 11 years ago

PragTob commented 11 years ago

When running the specs I get this:

WARNING: let declaration `output_dir` accessed in a `before(:all)` hook at:
  /home/tobi/github/furoshiki/spec/shoes/swt_jar_spec.rb:17:in `(root)'

This is deprecated behavior that will not be supported in RSpec 3.

`let` and `subject` declarations are not intended to be called
in a `before(:all)` hook, as they exist to define state that
is reset between each example, while `before(:all)` exists to
define state that is shared across examples in an example group.

(using rspec 2.13.0 and rspec-core 2.13.1). This might also have introduced the bug once back when this was in the shoes4 repository. I dunno what the best thing to handle this is, I'd guess an instance variable but what do you think?

(same thing happens in the swt_app_spec)