This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Todos.Task = SC.Record.extend({ | |
| isDone: SC.Record.attr(Boolean), | |
| description: SC.Record.attr(String) | |
| }) ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var task; | |
| module("Given an existing task", { | |
| setup: function() { | |
| SC.RunLoop.begin(); | |
| Todos.main(); | |
| task = Todos.store.createRecord(Todos.Task, { | |
| 'description': 'Some Task', | |
| 'isDone': false | |
| }); | |
| SC.RunLoop.end(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GIT | |
| remote: git://github.com/aslakhellesoy/cucumber.git | |
| revision: b7e6014 | |
| specs: | |
| cucumber (0.9.0) | |
| builder (~> 2.1.2) | |
| diff-lcs (~> 1.1.2) | |
| gherkin (~> 2.2.1) | |
| json_pure (~> 1.4.6) | |
| term-ansicolor (~> 1.0.5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ENV["RAILS_ENV"] ||= "test" | |
| require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') | |
| require 'cucumber/formatter/unicode' # Remove this line if you don't want Cucumber Unicode support | |
| require 'cucumber/rails/rspec' | |
| require 'cucumber/rails/world' | |
| require 'cucumber/web/tableish' | |
| require 'capybara/rails' | |
| require 'capybara/cucumber' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function(){ | |
| $('.other_submit').click(function(){ | |
| this.form.action = this.getAttribute('data-action') | |
| }) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="user-messages-nav"> | |
| <span <%= current == "inbox" ? 'class = "active" ' : '' %>> | |
| <%= link_to "Inbox", :controller => :mailboxes, :action => :show, :user_id => current_user.id, :id => "inbox" %> | |
| </span> | |
| <span <%= current == "sentbox" ? 'class = "active" ' : '' %>> | |
| <%= link_to "Sent Messages", :controller => :mailboxes, :action => :show, :user_id => current_user.id, :id => "sentbox" %> | |
| </span> | |
| <span <%= current == "trash" ? 'class = "active" ' : '' %>> | |
| <%= link_to "Archive", :controller => :mailboxes, :action => :show, :user_id => current_user.id, :id => "trash" %> | |
| </span> |
NewerOlder