You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/03/19 20:21:47 UTC

[37/55] [abbrv] git commit: test for names with spaces

test for names with spaces


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/6af732b9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/6af732b9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/6af732b9

Branch: refs/pull/76/head
Commit: 6af732b93fccbb9970b5b04a0988182eb069dcf0
Parents: 7ea7503
Author: Scott Ganyo <sc...@ganyo.com>
Authored: Wed Mar 12 16:06:09 2014 -0700
Committer: Scott Ganyo <sc...@ganyo.com>
Committed: Wed Mar 12 16:06:09 2014 -0700

----------------------------------------------------------------------
 sdks/ruby-on-rails/spec/usergrid_ironhorse/base_spec.rb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/6af732b9/sdks/ruby-on-rails/spec/usergrid_ironhorse/base_spec.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby-on-rails/spec/usergrid_ironhorse/base_spec.rb b/sdks/ruby-on-rails/spec/usergrid_ironhorse/base_spec.rb
index 92d5249..7fc911b 100644
--- a/sdks/ruby-on-rails/spec/usergrid_ironhorse/base_spec.rb
+++ b/sdks/ruby-on-rails/spec/usergrid_ironhorse/base_spec.rb
@@ -57,12 +57,14 @@ describe Usergrid::Ironhorse::Base do
     end
 
     it 'be created and destroyed' do
-      foo = Foo.create name: 'foo2'
+      foo = Foo.create name: 'foo man'
       foo.persisted?.should be_true
-      foo.name.should eq 'foo2'
+      foo.name.should eq 'foo man'
+      foo = Foo.find_by_name 'foo man'
+      foo.should_not be_nil
       foo.destroy.should be_true
       foo.persisted?.should be_false
-      foo = Foo.find_by_name 'foo2'
+      foo = Foo.find_by_name 'foo man'
       foo.should be_nil
     end