Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix posting with services, fix cuke

  • Loading branch information...
commit c66bd9d6d8de7999a4e393fb2fca4c0bd222e97e 1 parent 00f1adc
Dennis Collective denniscollective authored
9 app/assets/javascripts/app/models/status_message.js
View
@@ -11,14 +11,9 @@ app.models.StatusMessage = app.models.Post.extend({
toJSON : function(){
return {
status_message : _.clone(this.attributes),
- aspect_ids : this.get("aspect_ids") && this.get("aspect_ids").split(","),
+ aspect_ids : this.get("aspect_ids"),
photos : this.photos && this.photos.pluck("id"),
- services : mungeServices(this.get("services"))
- }
-
- function mungeServices (values) {
- if(!values) { return; }
- return values.length > 1 ? values : [values]
+ services : this.get("services")
}
}
});
2  features/step_definitions/trumpeter_steps.rb
View
@@ -22,7 +22,7 @@ def aspects_dropdown
def select_from_dropdown(option_text, dropdown)
dropdown.click
within ".dropdown-menu" do
- link = find("a:contains('#{option_text}')")
+ link = find("input[value=['#{option_text}']")
link.should be_visible
link.click
end
Please sign in to comment.
Something went wrong with that request. Please try again.