RubyGems Navigation menu

rspec-advanced_subject 0.0.1

advanced_subject attempts to cut out having to explicitly write the subject of your example group when trying to call methods or add arguments to methods. It works by reading the conventional description syntax to determine what the method you are calling is and later you state what you are passing to it. Given you have a file advanced_subject_spec.rb. ```ruby describe Hash do when_initialized_with [:a, :b] do it { should eq({a: :b}) } end end ``` When you run `rspec -f d advanced_subject_spec.rb` it will output: ``` ```

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 0.0.4 - December 12, 2014 (6 ko)
  2. 0.0.2.1 - July 28, 2014 (6 ko)
  3. 0.0.1 - July 27, 2014 (4,5 ko)
Voir toutes les versions (4)

Dépendances de Runtime (1):

rspec ~> 3.0

Propriétaires:

Auteurs:

  • Kelly Stannard, Kelly Stannard

Total de contrôle SHA 256:

30ac6b2701c6c412b5fa98467e2a8bf88f2bf1a7442368b87e7bf01ec3b34608

Total de téléchargements 7 662

Pour cette version 2 272

License:

MIT

Version de Ruby requise: >= 0

Liens: