Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: rodrigomanhaes/extreme_fluidity
base: master
...
head fork: nsi-iff/extreme_fluidity
compare: master
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 11 additions and 3 deletions.
  1. +2 −2 Makefile
  2. +9 −1 spec/xfluidity_spec.py
4 Makefile
View
@@ -6,10 +6,10 @@ specloud:
@python -c 'import specloud' 2>/dev/null || pip install --no-deps specloud -r https://github.com/hugobr/specloud/raw/master/requirements.txt
should-dsl:
- @python -c 'import should_dsl' 2>/dev/null || pip install https://github.com/hugobr/should-dsl/tarball/master
+ @python -c 'import should_dsl' 2>/dev/null || pip install -e git+https://github.com/hugobr/should-dsl.git#egg=should_dsl
fluidity:
- @python -c 'import fluidity' 2>/dev/null || pip install https://github.com/nsi-iff/fluidity/tarball/master
+ @python -c 'import fluidity' 2>/dev/null || pip install -e git+https://github.com/nsi-iff/fluidity.git#egg=fluidity-sm
test: deps
@echo =======================================
10 spec/xfluidity_spec.py
View
@@ -28,8 +28,9 @@ def exit_light(self):
def enter_light(self):
self.pass_light = True
- def boom(self):
+ def boom(self, param=None):
self.is_destroyed = True
+ self.boom_param = param
class DoorWannabe(object):
@@ -78,3 +79,10 @@ def it_can_get_rid_of_state_machine_stuff(self):
self.door_wannabe |should_not| respond_to('crack')
self.door_wannabe |should_not| respond_to('close')
+ def it_runs_action_from_a_reference_on_another_object(self):
+ anyone = type('object', (), {})()
+ anyone.transition = self.door.crack
+ anyone.transition('own3d')
+ self.door.boom_param |should| equal_to('own3d')
+ self.door.current_state |should| equal_to('broken')
+

No commit comments for this range

Something went wrong with that request. Please try again.