improve tests for lva
This commit is contained in:
@@ -35,6 +35,20 @@ describe Lva, :type=>:model do
|
||||
|
||||
expect(lva.semester).not_to be_empty
|
||||
end
|
||||
it "can create a valid tiss link" do
|
||||
lva.lvanr="101.679"
|
||||
tl=lva.tisslink
|
||||
expect(tl).to match "101679"
|
||||
expect(tl).to match "tiss.tuwien.ac.at"
|
||||
end
|
||||
it "should be able to load tissdata" do
|
||||
lva.lvanr="101.679"
|
||||
n=lva.name
|
||||
expect(lva.name).to eq(n)
|
||||
lva.load_tissdata
|
||||
expect(lva.name).not_to eq(n)
|
||||
|
||||
end
|
||||
|
||||
describe "if bare" do
|
||||
let(:lva) {FactoryGirl.build(:lva)}
|
||||
|
||||
Reference in New Issue
Block a user