I’m missing something here. The settings table just has a couple
fields, id, name, value, and group. name, value and group are all
strings, and id and name are the only ones with not null constraints.
When I run this, it says @appname is nil. What am I missing?
settings_test.rb:
require File.dirname(FILE) + ‘/…/test_helper’
class SettingTest < Test::Unit::TestCase
fixtures :settings
Replace this with your real tests.
def test_truth
assert_kind_of Setting, @appname
end
end
I’m missing something here. The settings table just has a couple
fields, id, name, value, and group. name, value and group are all
strings, and id and name are the only ones with not null constraints.
When I run this, it says @appname is nil. What am I missing?
…
appname:
id: 1001
name: appname
value: TestApp
It is looking for the variable ‘appname’ and the constant ‘TestApp’.
This should be