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
| it "renders select box with employees job title selected" do | |
| render | |
| rendered.should have_selector("form") do |form| | |
| form.should have_selector("select", | |
| :name => "employee[job_title_id]") do |select| | |
| select.should have_xpath(".//option[@selected = 'selected']") do |option| | |
| p option | |
| end | |
| end | |
| 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
| This: | |
| <%= link_to "Destroy", employees_confirm_path( | |
| :path => employee_path, | |
| :return_path => request.env['PATH_INFO']) | |
| %> | |
| Renders this: | |
| <a href="/employees/confirm?path=%2Femployees%2F14&return_path=%2Femployees%2F14">Destroy</a> |
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 assert = require('assert'); | |
| var EventEmitter = require('events').EventEmitter; | |
| var TestEmitter = function() { | |
| var self = this; | |
| EventEmitter.call(this); | |
| setTimeout(function() { | |
| self.emit('any', false); | |
| }, 2000); | |
| }; |
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
| class Settings(models.Model): | |
| # basic settings | |
| include_basic = models.BooleanField(default=True, null=False) | |
| include_people = models.BooleanField(default=False, null=False) | |
| class Meta: | |
| abstract = True | |
| class Account(models.Model): | |
| # the user that this account belongs to |
NewerOlder