factis 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +5 -5
- data/lib/factis/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -39,7 +39,7 @@ require 'factis/cucumber'
|
|
39
39
|
```
|
40
40
|
|
41
41
|
This gets you ready to use the DSL. Additionally, it forces Factis to forget
|
42
|
-
everything that you have told it to
|
42
|
+
everything that you have told it to memorize after each scenario. Because stale
|
43
43
|
state information from one scenario to the next will make you a very sad panda.
|
44
44
|
|
45
45
|
## How Do I Use This Thing? ##
|
@@ -49,8 +49,8 @@ That being the case, I'm going to use terminology from that side of the
|
|
49
49
|
experience. Here's everything that World gets when you use Factis.
|
50
50
|
|
51
51
|
```ruby
|
52
|
-
# Let's
|
53
|
-
|
52
|
+
# Let's memorize that my brother, Joe, just loves pie.
|
53
|
+
memorize_fact("What does Joe love?", "Joe loves pie.")
|
54
54
|
|
55
55
|
# Hey Factis, what does Joe love?
|
56
56
|
recall_fact("What does Joe love?")
|
@@ -78,7 +78,7 @@ class Foo
|
|
78
78
|
end
|
79
79
|
|
80
80
|
# The content can be pretty much anything.
|
81
|
-
|
81
|
+
memorize_fact(:some_foo, Foo.new)
|
82
82
|
|
83
83
|
# What's a foo?
|
84
84
|
recall_fact(:some_foo)
|
@@ -115,7 +115,7 @@ so this thing got thrown together.
|
|
115
115
|
## Okay, So What's So Great About It? ##
|
116
116
|
|
117
117
|
Not much, really. It's really just a simple DSL that hides away the things that
|
118
|
-
you tell it to
|
118
|
+
you tell it to memorize and recalls them at your request. There is a generator
|
119
119
|
to get you up and running with Cucumber, but you should be able to use it with
|
120
120
|
just about any test framework that allows you to extend the global namespace
|
121
121
|
(a-la `World(Factis)`).
|
data/lib/factis/version.rb
CHANGED