Project

fix-let

0.0
No release in over 3 years
Low commit activity in last 3 years
Provides "let" method for memoized helper definition.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.1
~> 13.0
~> 0.79
~> 0.17
~> 0.9

Runtime

< 0.18
 Project Readme

Fix::Let

Build Status Code Climate Gem Version Inline docs Documentation

Provides let method for memoized helper definition.

⚠️ This gem is no longer maintained, as the let method was merged in to Fix since the version 1.0.0.beta4.

Installation

Add this line to your application's Gemfile:

gem 'fix-let'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fix-let

Usage

Given this code:

# duck_spec.rb

require 'fix/let'

class Duck
  def swims
    'So! Swoosh...'
  end
end

Fix.describe Duck.new do
  let(:famous_word) { 'So!' }

  on :swims do
    it { MUST eql "#{famous_word} Swoosh..." }
  end
end

The output should look like this:

$ ruby duck_spec.rb
.

Ran 1 tests in 0.000243 seconds
100% compliant - 0 infos, 0 failures, 0 errors

Contact

Versioning

Fix::Let follows Semantic Versioning 2.0.

License

The gem is available as open source under the terms of the MIT License.


This project is sponsored by:
Sashite