This is a SCRIPT-8 cassette.
This file contains 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
can :modify, User, :id => user.id do |user| | |
!user.role_changed? | |
end | |
require 'spec_helper' | |
describe UsersController do | |
include Devise::TestHelpers # to give your spec access to helpers | |
before(:each) do |
This file contains 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 Element | |
def initialize(attrs) | |
@attrs = attrs | |
end | |
def do_something | |
@attrs.each do |attr| | |
p attr | |
end | |
end |
This file contains 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
javascript: | |
Cufon.replace('body'); |