Skip to content
This repository
Browse code

fix posting with services, fix cuke

  • Loading branch information...
commit c66bd9d6d8de7999a4e393fb2fca4c0bd222e97e 1 parent 00f1adc
Dennis Collective authored May 17, 2012
9  app/assets/javascripts/app/models/status_message.js
@@ -11,14 +11,9 @@ app.models.StatusMessage = app.models.Post.extend({
11 11
   toJSON : function(){
12 12
     return {
13 13
       status_message : _.clone(this.attributes),
14  
-      aspect_ids : this.get("aspect_ids") && this.get("aspect_ids").split(","),
  14
+      aspect_ids : this.get("aspect_ids"),
15 15
       photos : this.photos && this.photos.pluck("id"),
16  
-      services : mungeServices(this.get("services"))
17  
-    }
18  
-
19  
-    function mungeServices (values) {
20  
-      if(!values) { return; }
21  
-      return values.length > 1 ?  values :  [values]
  16
+      services : this.get("services")
22 17
     }
23 18
   }
24 19
 });
2  features/step_definitions/trumpeter_steps.rb
@@ -22,7 +22,7 @@ def aspects_dropdown
22 22
 def select_from_dropdown(option_text, dropdown)
23 23
   dropdown.click
24 24
   within ".dropdown-menu" do
25  
-    link = find("a:contains('#{option_text}')")
  25
+    link = find("input[value=['#{option_text}']")
26 26
     link.should be_visible
27 27
     link.click
28 28
   end

0 notes on commit c66bd9d

Please sign in to comment.
Something went wrong with that request. Please try again.