Permalink
Browse files

Whitespace cleanup

  • Loading branch information...
durran committed Apr 24, 2012
1 parent cff105b commit ff57b1af9b713b5b944fd29d06918a99f206f711
@@ -15,8 +15,8 @@ class All < Default
# @return [ true, false ] If the values match.
def matches?(value)
attribute_array = Array.wrap(@attribute)
- value.values.first.all? do |e|
- if e.is_a?(Regexp)
+ value.values.first.all? do |e|
+ if e.is_a?(Regexp)
attribute_array.any? { |_attribute| _attribute =~ e }
else
attribute_array.include?(e)
@@ -15,8 +15,8 @@ class In < Default
# @return [ true, false ] If a value exists.
def matches?(value)
attribute_array = Array.wrap(@attribute)
- value.values.first.any? do |e|
- if e.is_a?(Regexp)
+ value.values.first.any? do |e|
+ if e.is_a?(Regexp)
attribute_array.any? { |_attribute| _attribute =~ e }
else
attribute_array.include?(e)
@@ -5,5 +5,5 @@ class FolderItem
belongs_to :folder
field :name, :type => String
- validates :name, :uniqueness => {:scope => :folder_id}
+ validates :name, :uniqueness => {:scope => :folder_id}
end
@@ -202,10 +202,10 @@
let(:personal_folder) { Folder.create!(:name => "Personal") }
let(:public_folder) { Folder.create!(:name => "Public") }
-
+
before do
- personal_folder.folder_items << FolderItem.new(:name => "non-unique")
- public_folder.folder_items << FolderItem.new(:name => "non-unique")
+ personal_folder.folder_items << FolderItem.new(:name => "non-unique")
+ public_folder.folder_items << FolderItem.new(:name => "non-unique")
end
let(:item) { public_folder.folder_items.last }
@@ -37,7 +37,7 @@
actress and observer.last_after_create_record.try(:name).should == actress.name
end
end
-
+
context "when the observer is disabled" do
let!(:observer) do
ActorObserver.instance

0 comments on commit ff57b1a

Please sign in to comment.