Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:wids-eria/Trails-Forward-server

  • Loading branch information...
commit b8d7614a2b8254267eca5baa5f53f76854681339 2 parents c382afd + 5b3a08f
@bennytheshap authored
View
2  app/models/resource_tile.rb
@@ -173,7 +173,7 @@ def land_cover_type
end
def land_cover_type= val
- @landcover_class_code = ResourceTile.cover_type_number val
+ self.landcover_class_code = ResourceTile.cover_type_number val
end
def clear_resources!
View
3  spec/models/resource_tile/land_tile_spec.rb
@@ -94,6 +94,9 @@
lambda {
tile.clearcut!
}.should change(tile, :tree_density).to(0.0)
+ tile.save!
+ tile.reload
+ tile.land_cover_type.should == :barren
end
it "awards tile owner the lumber value when clearcut" do
Please sign in to comment.
Something went wrong with that request. Please try again.