mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-17 04:38:08 +01:00
make functional tests for context controller run
This commit is contained in:
parent
76340b780c
commit
59a4d5ede0
10 changed files with 225 additions and 182 deletions
|
|
@ -16,14 +16,6 @@ class Context < ActiveRecord::Base
|
|||
validates_length_of :name, :maximum => 255, :message => "context name must be less than 256 characters"
|
||||
validates_uniqueness_of :name, :message => "already exists", :scope => "user_id"
|
||||
|
||||
def self.feed_options(user)
|
||||
# TODO: move to view or helper
|
||||
{
|
||||
:title => 'Tracks Contexts',
|
||||
:description => "Lists all the contexts for #{user.display_name}"
|
||||
}
|
||||
end
|
||||
|
||||
def self.null_object
|
||||
NullContext.new
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue