Project

cuke_mem

0.0
No commit activity in last 3 years
No release in over 3 years
Gem serves as a place where step definitions from different modules can share remembered data
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 1.8
~> 10.1
~> 2.14

Runtime

~> 1.3
 Project Readme

cuke_mem Build Status

A very simple memory bank for cucumber tests

Allows you to write features like

Feature: I can store and recall stuff
  Scenario: Obligatory Hello World
    Given my data is "World"
    And I keep my data as "VAR"
    When I swizzle my data
    Then my data should be "Hello %{VAR}"

Usage

Include require 'cuke_mem/cucumber' in your features/support/env.rb

Then you can do

Given /^my data is "(.*)"$/ do |data|
  @my_data = data
end

Given /^I keep my data as "(.*)"$/ do |var|
  CukeMem.memorize var, @my_data
end

When /^I swizzle my data$/ do
  @my_data="Hello #{@my_data}"
end

Then /^my data should be "(.*)"/ do |key|
  @my_data.should == CukeMem.remember(key)
end

More

Check out specs and features to see all the ways you can use cuke_mem.

Install

gem install cuke_mem

or add the following to Gemfile:

gem 'cuke_mem'

and run bundle install from your shell.

More Information

Contributing

Please see the contribution guidelines.

Credits

Contributers:

  • Chris Busbey

Connamara Systems

cuke_mem is maintained and funded by Connamara Systems, llc.

The names and logos for Connamara Systems are trademarks of Connamara Systems, llc.

Licensing

cuke_mem is Copyright © 2016 Connamara Systems, llc.

This software is available under the GPL and a commercial license. Please see the LICENSE file for the terms specified by the GPL license. The commercial license offers more flexible licensing terms compared to the GPL, and includes support services. Contact us for more information on the Connamara commercial license, what it enables, and how you can start developing with it.